Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00CD0175FA for ; Tue, 9 Jun 2015 22:06:06 +0000 (UTC) Received: (qmail 99262 invoked by uid 500); 9 Jun 2015 22:06:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 99209 invoked by uid 500); 9 Jun 2015 22:06:00 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 99197 invoked by uid 99); 9 Jun 2015 22:06:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 22:06:00 +0000 Date: Tue, 9 Jun 2015 22:06:00 +0000 (UTC) From: "Stephen Yuan Jiang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-13878) Set hbase.fs.tmp.dir config in HBaseTestingUtility.java for Phoenix UT to use MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Stephen Yuan Jiang created HBASE-13878: ------------------------------------------ Summary: Set hbase.fs.tmp.dir config in HBaseTestingUtility.java for Phoenix UT to use Key: HBASE-13878 URL: https://issues.apache.org/jira/browse/HBASE-13878 Project: HBase Issue Type: Bug Components: test Affects Versions: 1.1.0, 2.0.0, 1.2.0 Reporter: Stephen Yuan Jiang Assignee: Stephen Yuan Jiang Priority: Minor HBASE-13625 changed the HFileOutputFormat2 partitioner's path from using the {{hadoop.tmp.dir}} config to {{hbase.fs.tmp.dir}} config. However, some Apache Phoenix unit tests (org.apache.phoenix.mapreduce.CsvBulkLoadToolIT and org.apache.phoenix.mapreduce.IndexToolIT) fail due to null value in the {{hbase.fs.tmp.dir}} config. They were relied on the {{hadoop.tmp.dir}} set from HBaseTestingUtility. {noformat} java.lang.IllegalArgumentException: Can not create a Path from a null string at org.apache.hadoop.fs.Path.checkPathArg(Path.java:122) at org.apache.hadoop.fs.Path.(Path.java:134) at org.apache.hadoop.fs.Path.(Path.java:88) at org.apache.hadoop.hbase.mapreduce.HFileOutputFormat2.configurePartitioner(HFileOutputFormat2.java:591) at org.apache.hadoop.hbase.mapreduce.HFileOutputFormat2.configureIncrementalLoad(HFileOutputFormat2.java:440) at org.apache.hadoop.hbase.mapreduce.HFileOutputFormat2.configureIncrementalLoad(HFileOutputFormat2.java:405) at org.apache.hadoop.hbase.mapreduce.HFileOutputFormat.configureIncrementalLoad(HFileOutputFormat.java:91) at org.apache.phoenix.mapreduce.CsvBulkLoadTool$TableLoader.call(CsvBulkLoadTool.java:505) at org.apache.phoenix.mapreduce.CsvBulkLoadTool$TableLoader.call(CsvBulkLoadTool.java:466) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at org.apache.phoenix.job.JobManager$InstrumentedJobFutureTask.run(JobManager.java:172) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) {noformat} The proposal is to set {{hbase.fs.tmp.dir}} in HBaseTestingUtility#setupDataTestDir(). -- This message was sent by Atlassian JIRA (v6.3.4#6332)