Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C13F4D0A8 for ; Wed, 26 Dec 2012 09:10:27 +0000 (UTC) Received: (qmail 21250 invoked by uid 500); 26 Dec 2012 09:10:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 20825 invoked by uid 500); 26 Dec 2012 09:10:20 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 20796 invoked by uid 99); 26 Dec 2012 09:10:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2012 09:10:20 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcdcu-cassandra-user-1@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2012 09:10:12 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tnn00-0001W2-7A for user@cassandra.apache.org; Wed, 26 Dec 2012 10:10:04 +0100 Received: from 203.129.226.211 ([203.129.226.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Dec 2012 10:10:04 +0100 Received: from sachinthakar by 203.129.226.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Dec 2012 10:10:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@cassandra.apache.org From: Sachin Subject: Re: Loading sstables to Cassandra using sstableloader and JMX client Date: Wed, 26 Dec 2012 09:06:05 +0000 (UTC) Lines: 162 Message-ID: References: <03217C4A-88C6-4BC5-A164-8599A3F42DC8@thelastpickle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 203.129.226.211 (Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11) X-Virus-Checked: Checked by ClamAV on apache.org > On Thu, Dec 20, 2012 at 6:15 AM,   homedepot.com> wrote: > Hi > I am working on options to load my sstables to load into Cassandra > (1.1.6 - localhost). > Reference -http://amilaparanawithana.blogspot.com/2012/06/bulk-loading- external-d > ata-to-cassandra.html > Note - I am running Hadoop in windows (standalone mode). Trying to > load my hive tables to Cassandra using sstableloader. > Had tried 2 options from the enlisted options in the reference link > provided: > *         Running sstableloader from java module - > Created a java class which invokes > org.apache.cassandra.tools.BulkLoader.main with the following args: > -d '127.0.0.1' 'C:\Anand\Workspace\H2C_POC\Customer' > I end up having "Unknown directory: 'C:\Anand\Workspace\H2C_POC\Customer'" > error. > Is there a problem with my directory structure? >                                Is it expecting a Linux directory format? > *         Using JMX Client - > I have given the arg as 'C:\Anand\Workspace\H2C_POC\Customer' in Run > configurations of my eclipse for running JMX Client. I get the > following > error: > Exception in thread "main" java.io.IOException: Failed to retrieve > RMIServer > stub: javax.naming.CommunicationException [Root exception is > java.rmi.ConnectIOException: error during JRMP connection > establishment; nested exception is: >       java.io.EOFException] >       at > javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338 > ) >       at > javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactor > y.java:248) >       at > com.homedepot.sstables.JmxBulkLoader.connect(JmxBulkLoader.java:35) >       at > com.homedepot.sstables.JmxBulkLoader.(JmxBulkLoader.java:27) >       at > com.homedepot.sstables.JmxBulkLoader.main(JmxBulkLoader.java:55) > Caused by: javax.naming.CommunicationException [Root exception is > java.rmi.ConnectIOException: error during JRMP connection > establishment; nested exception is: >       java.io.EOFException] >       at > com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java: > 101) >       at > com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.ja > va:185) >       at javax.naming.InitialContext.lookup(InitialContext.java:392) >       at > javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnecto > r.java:1886) >       at > javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.ja > va:1856) >       at > javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257 > ) >       ... 4 more > Caused by: java.rmi.ConnectIOException: error during JRMP connection > establishment; nested exception is: >       java.io.EOFException >       at > sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286) >       at > sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) >       at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) >       at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) >       at > com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java: > 97) >       ... 9 more > Caused by: java.io.EOFException >       at java.io.DataInputStream.readByte(DataInputStream.java:250) >       at > sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228) >       ... 13 more > Please let me know if I am missing something here. > Anand B > ________________________________ > The information in this Internet Email is confidential and may be > legally privileged. It is intended solely for the addressee. Access to > this Email by anyone else is unauthorized. If you are not the intended > recipient, any disclosure, copying, distribution or any action taken > or omitted to be taken in reliance on it, is prohibited and may be > unlawful. When addressed to our clients any opinions or advice > contained in this Email are subject to the terms and conditions > expressed in any applicable governing The Home Depot terms of business > or client engagement letter. The Home Depot disclaims all > responsibility and liability for the accuracy and content of this > attachment and for any damages or losses arising from any > inaccuracies, errors, viruses, e.g., worms, trojan horses, etc., or > other items of a destructive nature, which may be contained in this > attachment and shall not be liable for direct, indirect, consequential or special damages in connection with this e-mail message or its attachment. > > ________________________________ > The information in this Internet Email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution > or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Email are subject to the terms and conditions expressed in any applicable governing The > Home Depot terms of business or client engagement letter. The Home Depot disclaims all responsibility and liability for the accuracy and content of this attachment and for any damages or losses arising from any inaccuracies, errors, viruses, e.g., worms, trojan > horses, etc., or other items of a destructive nature, which may be contained in this attachment and shall not be liable for direct, indirect, consequential or special damages in connection with this e-mail message or its attachment. > >   > > > > The information in this Internet Email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution > or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Email are subject to the terms and conditions expressed in any applicable governing The > Home Depot terms of business or client engagement letter. The Home Depot disclaims all responsibility and liability for the accuracy and content of this attachment and for any damages or losses arising from any inaccuracies, errors, viruses, e.g., worms, trojan > horses, etc., or other items of a destructive nature, which may be contained in this attachment and shall not be liable for direct, indirect, consequential or special damages in connection with this e-mail message or its attachment. > Hi Anand, I am also experiencing the exact same problem as yours that is: Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.io.EOFException] I am also running cassandra on windows and was able to complete the step of SSTable creation. But I could not run the client because in the installation, sstableloader is given only for Linux. There is no sstableloader.bat like cassandra.bat for windows. So I was hoping that java program with JMX will work. But it is stuck here because of this error. Were you able to solve this problem at all? If yes, could you please help me with the solution that worked for you? thanks Sachin