incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Kumar Mantha <pradeep...@gmail.com>
Subject Re: Loading sstables to Cassandra using sstableloader and JMX client
Date Thu, 20 Dec 2012 18:17:52 GMT
Hi,

The directory information should contain entire path to the sstables location.

'C:\Anand\Workspace\H2C_POC\Customer\<column key name>.

I assume customer is the keyspace.

Hope it helps.

thanks
pradeep


On Thu, Dec 20, 2012 at 6:15 AM,  <ANAND_BALARAMAN@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-data-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(JMXConnectorFactory.java:248)
>
>        at
> com.homedepot.sstables.JmxBulkLoader.connect(JmxBulkLoader.java:35)
>
>        at com.homedepot.sstables.JmxBulkLoader.<init>(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.java:185)
>
>        at javax.naming.InitialContext.lookup(InitialContext.java:392)
>
>        at
> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
>
>        at
> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java: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.

Mime
View raw message