This is the full path of  SSTables:
/Users/nilabja/Development/Cassandra/apache-cassandra-0.7.5/data/*cctest*
/BTP-f-1-Data.db
*cctest=  *keyspace
*BTP*= Columnfamily name
json file= /Users/nilabja/Development/Cassandra/testjson.txt

commands are:

bin/sstable2json -f output.txt
/Users/nilabja/Development/Cassandra/apache-cassandra-0.7.5/data/*cctest1*/BTP-f-1-Data.db
-k keyname

bin/json2sstable -k cctest -c BTP /Users/nilabja/Desktop/testjson.txt
/Users/nilabja/Development/Cassandra/apache-cassandra-0.7.5/data/json2sstable/Fetch_CCDetails-f-1-Data.db

Thank You


On 21 July 2011 16:07, aaron morton <aa...@thelastpickle.com> wrote:

> What is the command line you are executing ?
>
> That error is only returned by sstable2json when an sstable path is not
> passed on the command line.
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 21 Jul 2011, at 18:50, Nilabja Banerjee wrote:
>
> Thank you...
> but  I have already gone through that.. but still not working... I am
> getting .. "*You must supply exactly one sstable
> * Can you tell me why I am getting this?
>
>
> On 21 July 2011 02:41, Tyler Hobbs <ty...@datastax.com> wrote:
>
>> The sstable2json/json2sstable format is detailed here:
>> http://www.datastax.com/docs/0.7/utilities/sstable2json
>>
>> On Wed, Jul 20, 2011 at 4:58 AM, Nilabja Banerjee
>> <nilabja.baner...@gmail.com> wrote:
>> >
>> >
>> >
>> >
>> > On 20 July 2011 11:33, Nilabja Banerjee <nilabja.baner...@gmail.com>
>> wrote:
>> >>
>> >> Hi All,
>> >>
>> >> Here Is my Json structure.
>> >>
>> >>
>> >> {"Fetch_CC" :{
>> >>                 "cc":{ "xxxx":"1000",
>> >>                          "yyyy:"ICICI",
>> >>                          "zzzz":"xxxxxxxx",
>> >>                          "city":{
>> >>                                  "name":"banglore"
>> >>                                    };
>> >>                        };
>> >> }
>> >>
>> >> If the structure is incorrect, please give me one small structre to use
>> >> below utility.
>> >> I am using 0.7.5 version.
>> >> Now how can I can use Json2SStable utilities? Please provide me the
>> steps.
>> >> What are the things I have configure?
>> >>
>> >> Thank You
>> >
>> >
>>
>>
>>
>> --
>> Tyler Hobbs
>> Software Engineer, DataStax
>> Maintainer of the pycassa Cassandra Python client library
>>
>
>
>

Reply via email to