Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9651C2E9 for ; Thu, 8 Jan 2015 15:45:34 +0000 (UTC) Received: (qmail 41052 invoked by uid 500); 8 Jan 2015 15:45:36 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 41016 invoked by uid 500); 8 Jan 2015 15:45:36 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 41002 invoked by uid 99); 8 Jan 2015 15:45:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 15:45:36 +0000 Date: Thu, 8 Jan 2015 15:45:35 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8581) Null pointer in cassandra.hadoop.ColumnFamilyRecoderWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8581?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 14269460#comment-14269460 ]=20 Brandon Williams commented on CASSANDRA-8581: --------------------------------------------- I'm confused by the CNFE for OffsetAwareConfigurationLoader. That's not a = class that exists in Cassandra. > Null pointer in cassandra.hadoop.ColumnFamilyRecoderWriter > ---------------------------------------------------------- > > Key: CASSANDRA-8581 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8581 > Project: Cassandra > Issue Type: Bug > Components: Hadoop > Reporter: xiangdong Huang > Assignee: Brandon Williams > Labels: hadoop > Fix For: 2.1.3 > > Attachments: =E5=B1=8F=E5=B9=95=E5=BF=AB=E7=85=A7 2015-01-08 =E4= =B8=8B=E5=8D=887.59.29.png, =E5=B1=8F=E5=B9=95=E5=BF=AB=E7=85=A7 2015-01-08= =E4=B8=8B=E5=8D=888.01.15.png, =E5=B1=8F=E5=B9=95=E5=BF=AB=E7=85=A7 2015-0= 1-08 =E4=B8=8B=E5=8D=888.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 ColumnFam= ilyRecoderWriter.java.=20 > Then it check why the exception occur, then it loadYaml to check if the d= isk is broken... > However, the exception is NullPointerException. because the client is not= initialized. > =20 > So we need a check to judge whether the client is null.=20 > ( > The exception, original code and fixed code are in the attachments. > ) -- This message was sent by Atlassian JIRA (v6.3.4#6332)