cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Thompson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-9343) Connecting Cassandra via Hive throws error
Date Mon, 11 May 2015 15:04:00 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-9343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Philip Thompson updated CASSANDRA-9343:
---------------------------------------
    Component/s: Hadoop
    Description: 
  >   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


  was:

  >   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



> Connecting Cassandra via Hive throws error
> ------------------------------------------
>
>                 Key: CASSANDRA-9343
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9343
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>            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)

Mime
View raw message