Hi,

Ok I have solved the issue it was the port number in the conf file, thanks
for your help.

Regards,
 Vahe


On Thu, Sep 5, 2013 at 6:49 AM, Vahe nr <[email protected]> wrote:

> Hi,
>
> I have disabled the firewall and tried a lot of testing between the the
> ssh is working fine without password for hadoop user, just now when I am
> running the script it shows me:
>  ./start-bspd.sh
> hmaster: starting zookeeper, logging to
> /home/hadoop/hama-0.6.2/bin/../logs/hama-hadoop-zookeeper-hmaster.out
> starting bspmaster, logging to
> /home/hadoop/hama-0.6.2/bin/../logs/hama-hadoop-bspmaster-hmaster.out
> hslave01: starting groom, logging to
> /home/hadoop/hama-0.6.2/bin/../logs/hama-hadoop-groom-hslave01.out
>
> but in the hama-hadoop-bspmaster-hmaster.log I have:
> 2013-09-05 11:41:59,483 ERROR org.apache.hama.bsp.BSPMaster: Can't get
> connection to Hadoop Namenode!
> java.net.ConnectException: Call to hmaster/192.168.0.30:9000 failed on
> connection exception: java.net.ConnectException: Connection refused
>
> Could you please make some suggestion to check.
> Thanks in advance.
>
> Regards,
>  Vahe
>
>
> On Wed, Sep 4, 2013 at 11:42 AM, Anastasis Andronidis <
> [email protected]> wrote:
>
>> You might have a firewall on the OS you are using (if you are using
>> CentoOS for example, you can try: service iptables stop)
>>
>> Anastasis
>>
>> On 4 Σεπ 2013, at 12:23 μ.μ., Vahe nr <[email protected]> wrote:
>>
>> > Hi,
>> >
>> > Let me add that the two machines (namenode and datanode) are virtual
>> > machines with local ips and there is no firewall between them.
>> > Do I need to put the Hadoop conf file also to be more clear.
>> >
>> > Regards,
>> > Vahe
>> >
>> >
>> > On Wed, Sep 4, 2013 at 8:59 AM, Vahe nr <[email protected]> wrote:
>> >
>> >> Thanks Anastasis for your response.
>> >>
>> >> The ping is ok from Hama server to Namenode which is actually the same
>> >> server. But you are right I need to check the firewall.
>> >>
>> >> Regards,
>> >> Vahe
>> >>
>> >>
>> >> On Wed, Sep 4, 2013 at 8:53 AM, Anastasis Andronidis <
>> >> [email protected]> wrote:
>> >>
>> >>> You can see the configurations of your Datanode (in conf directory) to
>> >>> see if you have any miss configurations on names and ports of
>> namenode.
>> >>>
>> >>> Else you should see for firewalls or try to ping the Namenode from
>> Hama
>> >>> server.
>> >>>
>> >>> It seams like a network problem.
>> >>>
>> >>> Kindly,
>> >>> Anastasis
>> >>>
>> >>> On 4 Σεπ 2013, at 11:45 π.μ., Vahe nr <[email protected]> wrote:
>> >>>
>> >>>> Dear all,
>> >>>>
>> >>>> I have a Hadoop cluster with one Namenode and one Datanode the
>> cluster
>> >>> is
>> >>>> working on which I have executed several examples.
>> >>>> Just now I want to use hama for some programming purposes, but when
>> I am
>> >>>> trying to start hama I am getting the following:
>> >>>> 2013-09-04 12:22:44,510 INFO org.apache.hadoop.ipc.Client: Retrying
>> >>> connect
>> >>>> to server: hmaster/IP:9000. Already tried 9 time(s).
>> >>>> 2013-09-04 12:22:44,513 ERROR org.apache.hama.bsp.BSPMaster: Can't
>> get
>> >>>> connection to Hadoop Namenode!
>> >>>> java.net.ConnectException: Call to hmaster/IP:9000 failed on
>> connection
>> >>>> exception: java.net.ConnectException: Connection refused
>> >>>>
>> >>>> I am using hadoop-1.0.4 and hama-0.6.2
>> >>>>
>> >>>> Hama config files are:
>> >>>> hama-site.xml
>> >>>> <configuration>
>> >>>> <property>
>> >>>>     <name>bsp.master.address</name>
>> >>>>     <value>hmaster:40000</value>
>> >>>>     <description>The address of the bsp master server. Either the
>> >>>>     literal string "local" or a host:port for distributed mode
>> >>>>     </description>
>> >>>>   </property>
>> >>>>
>> >>>>   <property>
>> >>>>     <name>fs.default.name</name>
>> >>>>     <value>hdfs://hmaster:9000/</value>
>> >>>>     <description>
>> >>>>       The name of the default file system. Either the literal string
>> >>>>       "local" or a host:port for HDFS.
>> >>>>     </description>
>> >>>>   </property>
>> >>>>
>> >>>>   <property>
>> >>>>     <name>hama.zookeeper.quorum</name>
>> >>>>     <value>hmaster</value>
>> >>>>     <description>Comma separated list of servers in the ZooKeeper
>> >>> Quorum.
>> >>>>     For example, "host1.mydomain.com,host2.mydomain.com,
>> >>> host3.mydomain.com
>> >>>> ".
>> >>>>     By default this is set to localhost for local and
>> >>> pseudo-distributed
>> >>>> modes
>> >>>>     of operation. For a fully-distributed setup, this should be set
>> to
>> >>> a
>> >>>> full
>> >>>>     list of ZooKeeper quorum servers. If HAMA_MANAGES_ZK is set in
>> >>>> hama-env.sh
>> >>>>     this is the list of servers which we will start/stop zookeeper
>> on.
>> >>>>     </description>
>> >>>>   </property>
>> >>>>
>> >>>> groomservers
>> >>>> hslave01   //which is the node name
>> >>>>
>> >>>> I will appreciate any help or suggestion to overcome this problem.
>> >>>>
>> >>>> Let me mention that when I am executing /stop-bspd.sh  I am getting
>> the
>> >>>> following:
>> >>>> no bspmaster to stop
>> >>>> hslave01: stopping groom
>> >>>> hmaster: stopping zookeeper
>> >>>>
>> >>>> So the groom and zookeeper are working fine.
>> >>>>
>> >>>>
>> >>>> Regards,
>> >>>> Vahe
>> >>>
>> >>>
>> >>
>>
>>
>

Reply via email to