Hello Péter :

etc/hosts

PUBLIC_IP_ADDRESS FQDN SHORTNAME


where shortname can be your shortened HostName

(Nota Bene: be respectful of tabs, spaces and <LF> are important...best to make 
backup before modify)

https://unix.stackexchange.com/questions/239920/how-to-set-the-fully-qualified-hostname-on-centos-7-0
[https://cdn.sstatic.net/Sites/unix/img/apple-touch-i...@2.png?v=32fb07f7ce26]<https://unix.stackexchange.com/questions/239920/how-to-set-the-fully-qualified-hostname-on-centos-7-0>

How to set the fully qualified hostname on CentOS 7.0 
...<https://unix.stackexchange.com/questions/239920/how-to-set-the-fully-qualified-hostname-on-centos-7-0>
unix.stackexchange.com
How do I set the fully qualified hostname on CentOS 7.0? I have seen a few 
posts online for example using: $ sudo hostnamectl set-hostname 
nodename.domainname However, running domainname returns


HTH
Martin
______________________________________________



________________________________
From: Horváth Péter Gergely <horvath.peter.gerg...@gmail.com>
Sent: Friday, April 20, 2018 6:23 AM
To: users@kafka.apache.org
Subject: Using Kafka CLI without specifying the URLs every single time?

Hello All,

I wondering if there is any way to avoid having to enter the host URLs for
each Kafka CLI command you execute.

This is kind of tedious as different CLI commands require specifying
different servers (--broker-list, --bootstrap-server and --zookeeper);
which is especially painful if the host names are long, and only slightly
different (e.g. naming scheme for AWS:
ec2-12-34-56-2.region-x.compute.amazonaws.com).

I know I could simply export shell variables for each type of endpoint and
refer that in the command, but that still only eases the pain:
export KAFKA_ZK=ec2-12-34-56-2.region-x.compute.amazonaws.com
bin/kafka-topics.sh --list --zookeeper ${KAFKA_ZK}

Is there by any chance a better way of doing this I am not aware of?
Technically I am looking for some solution where I don't have to remember
that a Kafka CLI command expects --broker-list, --bootstrap-server or
--zookeeper, but can specify these settings once.

Thanks,
Peter

Reply via email to