laike9m
laike9m

Reputation: 19368

Can I use Java System Property in hadoop's configuration xml?

According to this question, I can use Java System Property in tomcat's conf xml. Does this also apply to hadoop's configuration file, like core-site.xml, hdfs-site.xml? Thank you!

Upvotes: 0

Views: 215

Answers (1)

laike9m
laike9m

Reputation: 19368

Yes, you can. e.g.

<property>
    <name>dfs.name.dir</name>
    <value>${user.home}/hadoop-1.2.1/hdfs/name</value>
</property>

Upvotes: 1

Related Questions