Fork me on GitHub

Use Cli to operate Hadoop Unit

Hadoop-unit can be used with common tools such as:

HDFS command

hdfs dfs -ls hdfs://localhost:20112/

For windows user, you could have some issue like -classpath is not known. The cause of these errors are because your JAVA_HOME has space into. If your JAVA_HOME is linked to C:\Program File\Java\... then declared it as C:\Progra~1\Java\...

Kafka-console command

kafka-console-consumer --zookeeper localhost:22010 --topic topic

Ksql command

./ksql http://localhost:8083

HBase Shell

<configuration>
	<property>
		<name>hbase.zookeeper.quorum</name>
		<value>127.0.0.1:22010</value>
	</property>
	<property>
		<name>zookeeper.znode.parent</name>
		<value>/hbase-unsecure</value>
	</property>
</configuration>
hbase shell

Hive Shell

<configuration>
	<property>
		<name>hive.metastore.uris</name>
		<value>thrift://127.0.0.1:20102</value>
	</property>
</configuration>
hive

Hive beeline

For linux/MacOS user only

beeline
!connect jdbc:hive2://localhost:20103 user password

Cassandra Shell

./cqlsh localhost 13433

Alluxio Shell

ALLUXIO_MASTER_HOSTNAME=localhost
alluxio.master.port=14001
./alluxio fs ls <path>