Description
When parsing parameters to a class implementing Tool, and using ToolRunner, we can pass
bin/hadoop <tool_class> -Dkey=value
However, powershell parses the '=' sign itself, and sends it to java as ["-Dkey", "value"] which breaks GenericOptionsParser.
Using "-Dkey=value" or '-Dkey=value' does not fix the problem. The only workaround seems to trick PS by using:
'"-Dkey=value"' (single + double quote)
In cmd, "-Dkey=value" works, but not '"-Dkey=value"'.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-10094 NPE in GenericOptionsParser#preProcessForWindows()
- Closed
-
HBASE-6814 [WINDOWS] HBase on Windows
- Closed