1. 程式人生 > >cloudera mamager中配置hive載入第三方JAR.,為甚beeline不好用?

cloudera mamager中配置hive載入第三方JAR.,為甚beeline不好用?

for a in {24,25,26,27,28,29,30,31,32,33};do ssh 1.3.8.$a "mkdir -p /etc/hive/auxlib" ;done

/etc/hive/auxlib

HIVE_AUX_JARS_PATH=/etc/hive/auxlib

for i in {24,25,26,27,28,29,30,31,32,33}; do  scp   /home/airflow/benmu-analyze/workflow2/udf/tmp/json_array.jar  [email protected]$i:/etc/hive/auxlib/; done

[email protected]:~# beeline 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Beeline version 1.1.0-cdh5.13.3 by Apache Hive
beeline> !connect jdbc:hive2://1.3.8.4:10000/default
scan complete in 2ms
Connecting to jdbc:hive2://1.3.8.4:10000/default
Enter username for jdbc:hive2://1.3.8.4:10000/default: hive
Enter password for jdbc:hive2://1.3.8.4:10000/default: ****
Connected to: Apache Hive (version 1.1.0-cdh5.13.3)
Driver: Hive JDBC (version 1.1.0-cdh5.13.3)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://1.3.8.4:10000/default> add jar /etc/hive/auxlib/json_array.jar;
Error: Insufficient privileges to execute add (state=42000,code=0)