这就对了
[lngz@LionmatoMacBook-Pro ~/hadoop]$ cat conf/core-site.xml
<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/Users/lngz/hadoop/tmp/hadoop-${user.name}</value>
</property>
</configuration>