Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8581

Null pointer in cassandra.hadoop.ColumnFamilyRecoderWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • 2.1.x
    • None
    • Normal

    Description

      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 ColumnFamilyRecoderWriter.java.

      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.
      )

      Attachments

        1. difference
          2 kB
          xiangdong Huang
        2. 屏幕快照 2015-01-08 下午8.07.23.png
          170 kB
          xiangdong Huang
        3. 屏幕快照 2015-01-08 下午8.01.15.png
          110 kB
          xiangdong Huang
        4. 屏幕快照 2015-01-08 下午7.59.29.png
          108 kB
          xiangdong Huang

        Activity

          People

            brandon.williams Brandon Williams
            jixuan1989 xiangdong Huang
            Brandon Williams
            Philip Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: