Specify the local directory for HDFS storage

You need to add a hadoop.tmp.dir property into $HADOOP/conf/core-site.xml. For example:

<configuration>
  <property>
    <name>fs.default.name</name>
    <value>hdfs://localhost:9000</value>
  </property>

  <property>
    <name>hadoop.tmp.dir</name>
    <value>/Users/${user.name}/hdfs-${user.name}</value>
    <final>true</final>
  </property>
</configuration>