简体   繁体   中英

How do I run a sql query on Ambari / Zeplin using a command line tool?

I currently login to our big data Ambari / Zeplin web interface using a username/password in firefox and then execute a sql query and press play.

I was wondering if its possible to connect to the ambari server using the creds and run a sql script via a command line tool from windows CMD.exe , the same way you can do it using sqlplus and oracle databases. Thanks in advance.

I hope you must be running hive queries by logging into Ambari/Zeppelin.

You can access your hive server through jdbc by entering metastore IP, port and credentials from any jdbc command line utility like beeline.

Basically, your client node/ Edge Node should have the clients for the services(hive/hbase/Spark) and then you can run the queries through dedicated shell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM