cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2780) sstable2json needs to escape quotes
Date Fri, 17 Jun 2011 20:28:47 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051311#comment-13051311
] 

Hudson commented on CASSANDRA-2780:
-----------------------------------

Integrated in Cassandra-0.8 #175 (See [https://builds.apache.org/job/Cassandra-0.8/175/])
    Use jackson's ObjectMapper instead of hand-crafting json in sstable2json.
Patch by Pavel Yaskevich, reviewed by brandonwilliams for CASSANDRA-2780

brandonwilliams : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1136991
Files : 
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/tools/SSTableExport.java


> sstable2json needs to escape quotes
> -----------------------------------
>
>                 Key: CASSANDRA-2780
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2780
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Timo Nentwig
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: CASSANDRA-2780-v2.patch, CASSANDRA-2780.patch
>
>
> [default@foo] set transactions[test][data]='{"foo":"bar"}'; 
> $ cat /tmp/json
> {
> "74657374": [["data", "{"foo":"bar"}", 1308209845388000]]
> }
> $ ./json2sstable -s -c transactions -K foo /tmp/json /tmp/ss-g-1-Data.db
> Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
> org.codehaus.jackson.JsonParseException: Unexpected character ('f' (code 102)): was expecting
comma to separate ARRAY entries
>  at [Source: /tmp/json2; line: 2, column: 27]
> 	at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:929)
> 	at org.codehaus.jackson.impl.JsonParserBase._reportError(JsonParserBase.java:632)
> 	at org.codehaus.jackson.impl.JsonParserBase._reportUnexpectedChar(JsonParserBase.java:565)
> 	at org.codehaus.jackson.impl.Utf8StreamParser.nextToken(Utf8StreamParser.java:128)
> 	at org.codehaus.jackson.impl.JsonParserBase.skipChildren(JsonParserBase.java:263)
> 	at org.apache.cassandra.tools.SSTableImport.importSorted(SSTableImport.java:328)
> 	at org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:252)
> 	at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:476)
> ERROR: Unexpected character ('f' (code 102)): was expecting comma to separate ARRAY entries
>  at [Source: /tmp/json2; line: 2, column: 27]
> http://www.mail-archive.com/user@cassandra.apache.org/msg14257.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message