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 E645A9676 for ; Sat, 4 Feb 2012 19:46:19 +0000 (UTC) Received: (qmail 25684 invoked by uid 500); 4 Feb 2012 19:46:19 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 25666 invoked by uid 500); 4 Feb 2012 19:46:19 -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 25656 invoked by uid 99); 4 Feb 2012 19:46:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 19:46:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 19:46:16 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E81111A304E for ; Sat, 4 Feb 2012 19:45:54 +0000 (UTC) Date: Sat, 4 Feb 2012 19:45:54 +0000 (UTC) From: "Brandon Williams (Resolved) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1086147028.11816.1328384754952.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <714125215.11400.1328363033534.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CASSANDRA-3851) Wrong Keyspace name is generated while streaming the sstables using BulkOutputFormat. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams resolved CASSANDRA-3851. ----------------------------------------- Resolution: Not A Problem Right, when CASSANDRA-3828 is resolved, it will get merged into 1.1 so this won't be an issue. > Wrong Keyspace name is generated while streaming the sstables using BulkOutputFormat. > ------------------------------------------------------------------------------------- > > Key: CASSANDRA-3851 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3851 > Project: Cassandra > Issue Type: Bug > Components: Hadoop, Tools > Affects Versions: 1.1 > Reporter: Samarth Gahire > Assignee: Brandon Williams > Priority: Minor > Labels: bulkloader, hadoop, sstableloader > Fix For: 1.1 > > Original Estimate: 48h > Remaining Estimate: 48h > > I have merge the committed changes of [CASSANDRA-3828|https://issues.apache.org/jira/browse/CASSANDRA-3828] into my cassadra-trunk. Also the changes for the OutputLocation. > But when I tried to load the sstables with hadoop job it results into the following exception: > {code} > 12/02/04 11:19:12 INFO mapred.JobClient: map 6% reduce 0% > 12/02/04 11:19:14 INFO mapred.JobClient: Task Id : attempt_201202041114_0001_m_000001_1, Status : FAILED > java.lang.RuntimeException: Could not retrieve endpoint ranges: > at org.apache.cassandra.hadoop.BulkRecordWriter$ExternalClient.init(BulkRecordWriter.java:252) > at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:117) > at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:112) > at org.apache.cassandra.hadoop.BulkRecordWriter.close(BulkRecordWriter.java:182) > at org.apache.cassandra.hadoop.BulkRecordWriter.close(BulkRecordWriter.java:167) > at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.close(MapTask.java:650) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:765) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:369) > at org.apache.hadoop.mapred.Child$4.run(Child.java:259) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059) > at org.apache.hadoop.mapred.Child.main(Child.java:253) > Caused by: InvalidRequestException (*why:There is no ring for the keyspace: tmp*) > at org.apache.cassandra.thrift.Cassandra$describe_ring_result.read(Cassandra.java:24053) > at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) > at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_ring(Cassandra.java:1065) > at org.apache.cassandra.thrift.Cassandra$Client.describe_ring(Cassandra.java:1052) > at org.apache.cassandra.hadoop.BulkRecordWriter$ExternalClient.init(BulkRecordWriter.java:225) > ... 12 more > {code} > After looking into the code I figured out that as we are setting the OUTPUTLOCATION with system property "java.io.tmpdir" the output directory is getting created as: /tmp/Keyspace_Name > So in SSTableLoader while generating the kespace name like > {code} > this.keyspace = directory.getParentFile().getName(); > {code} > It is setting the keyspace name as "tmp" and results into the above exception. > I have changed the code as: > {code}this.keyspace = directory.getName();{code} > and it works perfect. > But I am wondering how it was working fine previously? Am I doing anything wrong ? or is it a bug? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira