List Info

Thread: hadoop-site.xml Help




hadoop-site.xml Help
country flaguser name
United States
2007-06-27 14:17:27
I entered the following in hadoop-site.xml and am getting
'connection refused' stacktrace at Linux command line.  What
could cause this?

<?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>MY.MACHINE.com:9000</value>
<description>
The name of the default file system. Either the literal
string 
"local" or a host:port for NDFS.
</description>
</property>
<property>
<name>mapred.job.tracker</name>
<value>my.machine.com:9001</value>
<description>
The host and port that the MapReduce job tracker runs at. If

"local", then jobs are run in-process as a single
map and 
reduce task.
</description>
</property>
<property> 
<name>mapred.map.tasks</name>
<value>1</value>
<description>
define mapred.map tasks to be number of slave hosts
</description> 
</property> 
<property> 
<name>mapred.reduce.tasks</name>
<value>1</value>
<description>
define mapred.reduce tasks to be number of slave hosts
</description> 
</property> 
<property>
<name>dfs.name.dir</name>
<value>/opt/nutch/filesystem/name</value>
</property>
<property>
<name>dfs.data.dir</name>
<value>/opt/nutch/filesystem/data</value>
</property>
<property>
<name>mapred.system.dir</name>
<value>/opt/nutch/filesystem/mapreduce/system</valu
e>
</property>
<property>
<name>mapred.local.dir</name>
<value>/opt/nutch/filesystem/mapreduce/local</value
>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>


Exception in thread "main"
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native
Method)
        at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.ja
va:195)
        at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Clien
t.java:149)
        at
org.apache.hadoop.ipc.Client.getConnection(Client.java:531)
        at
org.apache.hadoop.ipc.Client.call(Client.java:458)
        at
org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:163)
        at
org.apache.hadoop.dfs.$Proxy0.getProtocolVersion(Unknown
Source)
        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:247)
        at
org.apache.hadoop.dfs.DFSClient.<init>(DFSClient.java:
105)
        at
org.apache.hadoop.dfs.DistributedFileSystem$RawDistributedFi
leSystem.initialize(DistributedFileSystem.java:67)
        at
org.apache.hadoop.fs.FilterFileSystem.initialize(FilterFileS
ystem.java:57)
        at
org.apache.hadoop.fs.FileSystem.get(FileSystem.java:160)
        at
org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:119
)
        at
org.apache.hadoop.fs.FileSystem.get(FileSystem.java:91)
        at org.apache.nutch.crawl.Crawl.main(Crawl.java:83)


 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniel Clark, President
DAC Systems, Inc.
5209 Nanticoke Court
Centreville, VA  20120
Cell - (703) 403-0340
Email - daniel.a.clarkverizon.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )