Support Questions
Find answers, ask questions, and share your expertise

mapreduce job to populate phoenix index fails

mapreduce job to populate phoenix index fails

Explorer

```Error: java.lang.IllegalArgumentException: Can't read partitions file at org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner.setConf(TotalOrderPartitioner.java:116) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136) at org.apache.hadoop.mapred.MapTask$NewOutputCollector.<init>(MapTask.java:701) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:770) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:170) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:164) Caused by: java.io.FileNotFoundException: File does not exist: hdfs://tc-hbase-ha/user/hbase/hbase-staging/partitions_f6379d46-5332-4d85-af06-2f7ec3e1a3c9 at org.apache.hadoop.hdfs.DistributedFileSystem$26.doCall(DistributedFileSystem.java:1446) at org.apache.hadoop.hdfs.DistributedFileSystem$26.doCall(DistributedFileSystem.java:1438) at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1438) at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1822) at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1846) at org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner.readPartitions(TotalOrderPartitioner.java:301) at org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner.setConf(TotalOrderPartitioner.java:88) ... 10 more```

trying to populate the secondary index using ```sudo -u hbase /usr/hdp/current/hbase-client/bin/hbase org.apache.phoenix.mapreduce.index.IndexTool --schema BI --data-table INVENTORY_DELTA --index-table VIN_IDX --output-path /apps/hbase/data/```