Clone
Chris Sheedy <chris.sheedy@hp.com>
committed
on 21 Apr 15
Report ports used by install_local_hadoop
Added options -n and -v to install_local_hadoop so it prints the
ports numbers it configures. Al… Show more
Report ports used by install_local_hadoop

Added options -n and -v  to install_local_hadoop so it prints the

ports numbers it configures.  Also improved the help text which

now is:

install_local_hadoop [ -p {<start port num> | rand | fromDisplay} ]

                    [ -y ]

                    [ -n ]

                    [ -v ]

 -p configures non-standard ports, and is one of:

   -p <start port num>     custom cases

   -p rand                 for shared systems, use a random start port number

                             between 9000 and 49000 that is divisible by 200

   -p fromDisplay          if you are running on a VNC session

 -y answers interactive questions implicitly with yes

 -n takes no action, useful with -v

 -v lists the port values used

 See script header for use of optional environment variables.

For example:

$ install_local_hadoop -v -n

MY_DCS_MASTER_INFO_PORT=40010

MY_DCS_MASTER_PORT=37800

MY_DCS_SERVER_INFO_PORT=40030

MY_HADOOP_DN_HTTP_PORT_NUM=50075

MY_HADOOP_DN_IPC_PORT_NUM=50020

MY_HADOOP_DN_PORT_NUM=50010

MY_HADOOP_HDFS_PORT_NUM=9000

MY_HADOOP_JOB_TRACKER_HTTP_PORT_NUM=50030

MY_HADOOP_NN_HTTP_PORT_NUM=50070

MY_HADOOP_SECONDARY_NN_PORT_NUM=50090

MY_HADOOP_SHUFFLE_PORT_NUM=8080

MY_HADOOP_TASK_TRACKER_PORT_NUM=50060

MY_HBASE_MASTER_INFO_PORT_NUM=60010

MY_HBASE_MASTER_PORT_NUM=60000

MY_HBASE_REGIONSERVER_INFO_PORT_NUM=60030

MY_HBASE_REGIONSERVER_PORT_NUM=60020

MY_HBASE_REST_PORT_NUM=8080

MY_HBASE_ZOOKEEPER_LEADERPORT_NUM=3888

MY_HBASE_ZOOKEEPER_PEERPORT_NUM=2888

MY_HBASE_ZOOKEEPER_PROPERTY_CLIENTPORT_NUM=2181

MY_REST_SERVER_PORT=4200

MY_REST_SERVER_SECURE_PORT=4201

MY_SQL_PORT_NUM=3346

MY_YARN_ADMIN_PORT_NUM=8033

MY_YARN_HTTP_PORT_NUM=8088

MY_YARN_LOCALIZER_PORT_NUM=8040

MY_YARN_NM_PORT_NUM=8041

MY_YARN_RESMAN_PORT_NUM=8032

MY_YARN_SCHED_PORT_NUM=8030

MY_YARN_TRACKER_PORT_NUM=8031

$

Because more options were added, changed the test of them to a loop instead

of sequential tests.

Removed trailing spaces.

Change-Id: Ia4c7acd89a7556c4f14af7e75b8f28c98abee48c

Show less

default + 8 more