some-master: ssh: connect to host some-master port 22: Connection timed out

645 views
Skip to first unread message

paritoshp...@gmail.com

unread,
Aug 29, 2017, 1:25:33 PM8/29/17
to actionml-user
i was using this guide to install prediction.io http://actionml.com/docs/single_machine  this tutorial is not working fully.  when i run `sbin/start-dfs.sh` command, it says 


    some-master: ssh: connect to host some-master port 22: Connection timed out 


any idea how to resolve this problem ? 

thanks 

Pat Ferrel

unread,
Aug 29, 2017, 3:27:11 PM8/29/17
to paritoshp...@gmail.com, actionml-user
The word “some-master” is a placeholder/wildcard for you to replace with your actual master’s IP address or host name.


--
You received this message because you are subscribed to the Google Groups "actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-use...@googlegroups.com.
To post to this group, send email to action...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/actionml-user/d65d251d-4a27-47fc-b99c-4dc6c49987b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pat Ferrel

unread,
Aug 29, 2017, 3:27:51 PM8/29/17
to Pat Ferrel, paritoshp...@gmail.com, actionml-user
for a single machine you might replace with “localhost”


paritoshp...@gmail.com

unread,
Aug 29, 2017, 5:32:52 PM8/29/17
to actionml-user, p...@occamsmachete.com, paritoshp...@gmail.com
i have added `some-host` in my host file see http://15as.com/3S3C1x3D043E

paritoshp...@gmail.com

unread,
Aug 29, 2017, 5:45:38 PM8/29/17
to actionml-user, paritoshp...@gmail.com
to clarify, i have "some-master" already as host and it is working too http://15as.com/223A0y2Q2s07 . see the screenshot  of my host file http://15as.com/223X1I3j3c0S . I understand this is confusing but i picked it whatever is written there to get this thing working as quickly as possible. http://15as.com/0S1f291u2V0n  

Pat Ferrel

unread,
Aug 30, 2017, 7:58:24 AM8/30/17
to paritoshp...@gmail.com, actionml-user
Sounds like you don’t have passwordless ssh setup correctly, which is required by HDFS. You should be able to login to localhost without a password. Also are you installing as root, or a user. The instructions will not work if you are installing as root.


-- 
You received this message because you are subscribed to the Google Groups "actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-use...@googlegroups.com.
To post to this group, send email to action...@googlegroups.com.

paritoshp...@gmail.com

unread,
Aug 31, 2017, 10:00:37 AM8/31/17
to actionml-user, paritoshp...@gmail.com
I can't have passwordless ssh, if i do..wouldn't it allow the world to access my server ? Also, there is no such requirement written in the tutorial, infact the tutorial encourage to create password for user. http://15as.com/3y112K1B2X0W  . Also i dont have any added security or firewall, my server have things whatever is written in that tutorial. 


On Tuesday, August 29, 2017 at 10:55:33 PM UTC+5:30, paritoshp...@gmail.com wrote:

Pat Ferrel

unread,
Aug 31, 2017, 2:27:17 PM8/31/17
to Paritosh_Piplerwar, actionml-user
Passwordless ssh requires public keys be installed on the server it is the most secure method for using ssh. Passwordless means no passoword will work so unless the user signing in has the private key to match the public key installed they will be denied.

This is different than passwords for the user, which is a linux thing.

I suggest you read up on linux and ssh. The passwordless ssh is required by HDFS and so cannot be ignored. As to security I suggest you get a firewall or setup you machine to not allow connections from outside except for 7070, 9000, and 22 (ssh). Then the HDFS and other localhost connections will only be allowed from localhost to localhost.

If you want a turnkey system try the AWS AMI, which is all preconfigured with PIO and the UR with the AWS firewall so you can set secutiry groups easily to allow only the above ports to be connected to from the outside. See instructions here: http://actionml.com/docs/awssetupguide


-- 
You received this message because you are subscribed to the Google Groups "actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-use...@googlegroups.com.
To post to this group, send email to action...@googlegroups.com.

paritoshp...@gmail.com

unread,
Sep 1, 2017, 11:26:23 AM9/1/17
to actionml-user, paritoshp...@gmail.com
thank you, it works :) 


On Tuesday, August 29, 2017 at 10:55:33 PM UTC+5:30, paritoshp...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages