Connecting to AlwaysOn SQL server using Beeline

You can use Shark Beeline to test AlwaysOn SQL.


  1. Start AlwaysOn SQL.

  2. Start the Beeline shell.

    dse beeline
  3. Connect to the server using the JDBC URI for your server.

    beeline> !connect jdbc:hive2://localhost:10000
  4. 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;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000,