cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiangdong Huang (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-8581) Null pointer in cassandra.hadoop.ColumnFamilyRecoderWriter
Date Thu, 08 Jan 2015 12:08:34 GMT
xiangdong Huang created CASSANDRA-8581:

             Summary: Null pointer in cassandra.hadoop.ColumnFamilyRecoderWriter
                 Key: CASSANDRA-8581
             Project: Cassandra
          Issue Type: Bug
          Components: Hadoop
            Reporter: xiangdong Huang
         Attachments: 屏幕快照 2015-01-08 下午7.59.29.png, 屏幕快照 2015-01-08 下午8.01.15.png,
屏幕快照 2015-01-08 下午8.07.23.png

When I run examples/hadoop_word_count. I find that ReducerToFilesystem is correct but when
I use ReducerToCassandra, the program will call loadYaml().

The reason is that the program catch a exception at line 196 of

Then it check why the exception occur, then it loadYaml to check if the disk is broken...

However, the exception is NullPointerException. because the client is not initialized.
So we need a check to judge whether the client is null. 
The exception, original code and fixed code are in the attachments.

This message was sent by Atlassian JIRA

View raw message