Skip to content

Latest commit

 

History

History
27 lines (13 loc) · 574 Bytes

README.md

File metadata and controls

27 lines (13 loc) · 574 Bytes

Utility soft for JDBC connectivity to HIVE

Quick start guide :

  1. Check out a repo :

$git clone https://github.com/hupuxiaojun/hiveutil.git

  1. Compile :

$cd hiveutil $mvn clean install

  1. Run your code

$cd target

If you would like to redirect output to STDOUT :

java -Dhue_user=hdfs -Dhue_password=hdfs -jar hiveutil-1.0-SNAPSHOT-jar-with-dependencies.jar "n1" "show tables"

If you would like to redirect output to a file

java -Dhue_user=hdfs -Dhue_password=hdfs -jar hiveutil-1.0-SNAPSHOT-jar-with-dependencies.jar "n1" "show tables" "/tmp/result.txt"