Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82C9D17E46 for ; Mon, 11 May 2015 18:11:00 +0000 (UTC) Received: (qmail 61530 invoked by uid 500); 11 May 2015 18:11:00 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 61488 invoked by uid 500); 11 May 2015 18:11:00 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 61476 invoked by uid 99); 11 May 2015 18:11:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2015 18:11:00 +0000 Date: Mon, 11 May 2015 18:11:00 +0000 (UTC) From: "Philip Thompson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-9343) Connecting Cassandra via Hive throws error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Philip Thompson resolved CASSANDRA-9343. ---------------------------------------- Resolution: Duplicate > 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)