Member since
11-09-2017
19
Posts
0
Kudos Received
0
Solutions
12-05-2017
10:06 PM
Dear @Aditya Sirna and @Jay Kumar SenSharma, Thank you for your valuable comments and help. I could resolve issues regarding to running Zeppelin HIVE into standalone Hadoop cluster. I have added following configurations to sort out the issue: 1- I have added hadoop.proxyuser.hiveuser.hosts=* and hadoop.proxyuser.hiveuser.groups=* into core-site.xml in Hadoop. 2- I copied HIVE JDBC jar file from a standalone cluster into Zeppelin JDBC interpreter: cp /usr/local/hive/lib/hive-jdbc-2.1.0.jar /usr/local/zeppelin/interpreter/jdbc/ 3- I ran /usr/local/hive/bin/hiveserver2 to be able to listen port 10000. 4- I configured dependencies in jdbc interpreter from Zeppelin Web UI as follows: org.apache.hive:hive-jdbc::2.1.0 (because I have installed Hive version 2.1.0) org.apache.hadoop:hadoop-common::2.8.1 (because I have installed Hadoop version 2.8.1)
... View more
11-28-2017
01:01 AM
1 Kudo
Hi @Mike Bit If you want to use a CLI to access Hive, the recommend client tool to use is called beeline. It is normally included in the client tools installation, so you probably already have it ready to go. From your client tools machine/host/server, you will use the beeline client to connect to the HiveServer2 JDBC URL, and everything from there is the usual SQL commands. In Ambari, you can easily copy the HiveServer2 JDBC URL directly from the Hive service config screen, and paste it right into a beeline connect string. So for example, if my machines were ssahi[0-2].hortonworks.com, where I was running ZooKeeper, and I was using hive/hive as the user/password, my beeline command to open the client and connect to Hive may look like: beeline -u "jdbc:hive2://ssahi1.hortonworks.com:2181,ssahi0.hortonworks.com:2181,ssahi2.hortonworks.com:2181/;ServiceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"
-n hive -p hive You can find more on Beeline from the project documentation here, including example syntax, and config to have things display nicer, etc: https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Beeline–CommandLineShell
... View more
11-13-2017
06:14 AM
1 Kudo
You need to do that step. That is the one which configures the proxy for your ambari principal.
... View more