hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-8901) [WINDOWS] Powershell based bin script (bin/hbase.ps1)
Date Thu, 15 Aug 2013 19:23:20 GMT

     [ https://issues.apache.org/jira/browse/HBASE-8901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

stack updated HBASE-8901:

    Fix Version/s:     (was: 0.95.2)
> [WINDOWS] Powershell based bin script (bin/hbase.ps1)
> -----------------------------------------------------
>                 Key: HBASE-8901
>                 URL: https://issues.apache.org/jira/browse/HBASE-8901
>             Project: HBase
>          Issue Type: Sub-task
>          Components: scripts
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 0.98.0, 0.96.0
>         Attachments: hbase.ps1
> This is a continuation of HADOOP-9660. 
> Powershell does argument parsing itself before sending them to the program. Thus using
the hbase.cmd script from the powershell environment comes with some surprises since ","s
and "="s are parsed into .NET objects, and hbase.cmd receives those arguments separated by
> An example is: 
> {code}
> hbase org.apache.hadoop.hbase.mapreduce.CopyTable --new.name=tablecopy --families=f1:f1,f2:f2,f3:f3
> {code}
> will be send to the java process as 
> ["--new.name", "tablecopy", "--families", "f1:f1", "f2:f2", "f3:f3", "table1"]
> A lot of HBase commands already make use of commas and equals signs for their arguments,
it is important to create least surprise for the users between different platforms (meaning
that they should be able to copy-paste commands). 
> Although there are some workarounds (like using --% or single and double quota-ing every
argument, like '"--new.name=tablecopy"') they are not user friendly. 
> In this isssue, I propose we add a small powershell script to pre-parse the arguments
and reconstruct them to send to the hbase.cmd script. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message