You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2021/03/07 14:11:00 UTC
[jira] [Updated] (HBASE-25609) There is a problem with the
SPLITS_FILE in the HBase shell statement
[ https://issues.apache.org/jira/browse/HBASE-25609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang updated HBASE-25609:
------------------------------
Fix Version/s: 2.4.2
2.3.5
2.5.0
2.2.7
3.0.0-alpha-1
Hadoop Flags: Reviewed
Resolution: Fixed
Status: Resolved (was: Patch Available)
Pushed to branch-2.2+.
Thanks [~shenshengli] for contributing.
> There is a problem with the SPLITS_FILE in the HBase shell statement
> --------------------------------------------------------------------
>
> Key: HBASE-25609
> URL: https://issues.apache.org/jira/browse/HBASE-25609
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.0.1
> Reporter: shenshengli
> Assignee: shenshengli
> Priority: Minor
> Fix For: 3.0.0-alpha-1, 2.2.7, 2.5.0, 2.3.5, 2.4.2
>
>
> The Ruby script here has a problem passing in a null value:
> hbase-shell/src/main/ruby/hbase/admin.rb
> {code:java}
> if arg.key?(SPLITS_FILE)
> splits_file = arg.delete(SPLITS_FILE)
> unless File.exist?(splits_file)
> raise(ArgumentError, "Splits file #{splits_file} doesn't exist")
> end
> arg[SPLITS] = []
> File.foreach(splits_file) do |line|
> arg[SPLITS].push(line.chomp)
> end
> tdb.setValue(SPLITS_FILE, arg[SPLITS_FILE]){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)