sql workbench connection to hadoop
Category : Hive
Many time we do not want to run our hive query through beeline or hive cli due to so many reason. Here I am not going to talk about reasons as its big debatable point, so in this article I have explain the steps to connect SQL Workbench to out hadoop cluster. In this article I have used hortonworks hdp 2.3 stack.
Step 1: Download SQL Workbench from the following URL and run it.
Step 2 : Download following driver list from your hadoop client to your local machine.
FOR HDP 2.2.x From /usr/hdp/current/hive-client/lib/ sftp or scp to your local desktop
FOR HDP 2.3.x
From /usr/hdp/current/hive-client/lib/ sftp or scp to your local desktop
- hive-jdbc.jar (you may have symlink so need to download main jar)
- hadoop-common.jar (you may have symlink so need to download main jar)
Step 3: Goto file and open Manage Driver to configure your driver:
Step 4: Create new Driver with any name(like Hadoop or HiveServer2 ) and upload all required .jar files then click ok.
Step 5: Now go to File menu and then click on “Connection Window ” ,select your created driver also pass required parameters(JDBC URL,Username, password etc):
Step 6: Now click on Test button to test connection and then click on ok button to save your configuration.
Now you can run your command or query through sql-workbench, I hope you this will help you to make connection to hdp via sql workbench
Leave a Reply