madheswaran created CASSANDRA-9343:
--------------------------------------
Summary: Connecting Cassandra via Hive throws error
Key: CASSANDRA-9343
URL: https://issues.apache.org/jira/browse/CASSANDRA-9343
Project: Cassandra
Issue Type: Bug
Reporter: madheswaran
> CREATE EXTERNAL TABLE g3( a int, b int, c int ) STORED BY
'org.apache.hadoop.hive.cassandra.cql.CqlStorageHandler' WITH
SERDEPROPERTIES("cql.primarykey" = "a,b", "cassandra.host" = "10.234.31.170",
"cassandra.port "= "9160" )
> TBLPROPERTIES ("cassandra.ks.name" =
"device_cloud_integration","cassandra.cf.name" = "g3","cassandra.ks.repfactor"
= "2","cassandra.ks.strategy" =
"org.apache.cassandra.locator.SimpleStrategy","cassandra.partitioner"="org.apache.cassandra.dht.RandomPartitioner"
);
OK
Time taken: 0.407 seconds
hive> select * from g3;
OK
Failed with exception java.io.IOException:java.lang.RuntimeException:
org.apache.cassandra.exceptions.ConfigurationException: Unable to find
partitioner class 'org.apache.cassandra.dht.RandomPartitioner'
Time taken: 0.217 seconds
hive>
> add jar cassandra-all-2.1.5.jar;
Added [cassandra-all-2.1.5.jar] to class path
Added resources: [cassandra-all-2.1.5.jar]
hive>
>
>
> select * from g3;
OK
Failed with exception java.io.IOException:java.lang.RuntimeException:
org.apache.cassandra.exceptions.ConfigurationException: Unable to find
partitioner class 'org.apache.cassandra.dht.RandomPartitioner'
Time taken: 0.215 seconds
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)