[
https://issues.apache.org/jira/browse/HBASE-5752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250230#comment-13250230
]
stack commented on HBASE-5752:
------------------------------
Something like this Jeremy?
{code}
Index: src/main/ruby/hbase/admin.rb
===================================================================
--- src/main/ruby/hbase/admin.rb (revision 1311378)
+++ src/main/ruby/hbase/admin.rb (working copy)
@@ -194,7 +194,9 @@
end
arg[SPLITS] = []
File.foreach(arg[SPLITS_FILE]) do |line|
- arg[SPLITS].push(line.strip())
+ stripped = line.strip()
+ next unless stripped.length > 0
+ arg[SPLITS].push(stripped)
end
end
{code}
I've not tried it.
> Blank line in SPLITS_FILE causes Master to crash
> ------------------------------------------------
>
> Key: HBASE-5752
> URL: https://issues.apache.org/jira/browse/HBASE-5752
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.92.1
> Reporter: Jeremy Carroll
> Priority: Minor
> Attachments: test.txt
>
>
> When creating a new table with the hbase shell, and specifying a SPLITS_FILE
> with a blank line in it will cause the master to crash.
> Uploading a sample splits file, here are the commands to test the split.
> create 'testTable', {NAME => 'a', BLOOMFILTER => 'NONE', REPLICATION_SCOPE =>
> '0', COMPRESSION => 'NONE', MIN_VERSIONS => '3', TTL => '2147483647',
> BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'},
> {SPLITS_FILE => '/tmp/test.txt'}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira