How to specify system property in hadoop except modify hadoop-env.sh?
问题 I'd like to set system property (not hadoop property) when running hadoop jobs. I found that it's not easy to setting system property. Even I set the property in shell export HADOOP_OPTS="$HADOOP_OPTS:-Dproperty=value" It's still not working. The "-D" option of hadoop command line is only for Configuration, not system property. So the "-D" option also not working Anyone has ideas ? thanks 回答1: Why not simply use -Dfoo.bar=example in-line when starting the job via command line, like so: hadoop