Connecting to AlwaysOn SQL server using Beeline
You can use Shark Beeline to test AlwaysOn SQL.
Procedure
-
Start the Beeline shell.
dse beeline
-
Connect to the server using the JDBC URI for your server.
beeline> !connect jdbc:hive2://localhost:10000
-
Connect to a keyspace and run a query from the Beehive shell.
0: jdbc:hive2://localhost:10000> use test; 0: jdbc:hive2://localhost:10000> select * from test;