You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Geoffrey Jacoby (JIRA)" <ji...@apache.org> on 2019/01/25 18:51:00 UTC

[jira] [Commented] (PHOENIX-5111) IndexTool gives NPE when trying to do a direct build without an output-path set

    [ https://issues.apache.org/jira/browse/PHOENIX-5111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752570#comment-16752570 ] 

Geoffrey Jacoby commented on PHOENIX-5111:
------------------------------------------

According to [~ckulkarni]: "It's coming from IndexTool#configureJobForAysncIndex. It does a 
fs = outputPath.getFileSystem(configuration);"

Also, we should fix the typo in the function name "configureJobForAysncIndex". It's been bugging me for awhile now, and since it's private, changing it won't hurt anything. :-)

> IndexTool gives NPE when trying to do a direct build without an output-path set
> -------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5111
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5111
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.14.1
>            Reporter: Geoffrey Jacoby
>            Assignee: Gokcen Iskender
>            Priority: Minor
>
> The IndexTool has several modes. If the -direct or -partial-rebuild flags are not set, the tool assumes the user wants to rebuild the index by creating HFiles and then bulk-loading them back into HBase, and requires an extra -output-path flag to deterine where the temporary HFiles should live. 
> In practice, we've found that -direct mode (which loads using HBase Puts) is quicker. However, even though there's logic to not require the -output-path flag when -direct mode is chosen, the IndexTool will throw an NPE if it's not present. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)