datadudes / salesforce2hadoop

Import Salesforce data into Hadoop HDFS in Avro format
23 stars 13 forks source link

How do I specify security token? #10

Closed ajayinfoworks closed 8 years ago

ajayinfoworks commented 8 years ago

First time I ran this tool, I got this message:

Exception in thread "main" [LoginFault [ApiFault  exceptionCode='LOGIN_MUST_USE_SECURITY_TOKEN'
 exceptionMessage='Invalid username, password, security token; or user locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the API--from outside of your company’s trusted networks, you must add a security token to your password to log in. To get your new security token, log in to Salesforce. From your personal settings, enter Reset My Security Token in the Quick Find box, then select Reset My Security Token.'

So I created a new security token but I don't know how to pass it to this tool. Please explain. Thanks.

ajayinfoworks commented 8 years ago

Added 'Security Token' to the end of the password as suggested at the following link & got past this issue.

https://docs.servicerocket.com/pages/viewpage.action?pageId=5967258

Henry922 commented 6 years ago

Hi I've got the same error and i've added my security Token as below , however i've received another error as below, any ideas?

java -jar sf2hadoop.jar init -u henry922@yahoo.com -p pwdtCA5ShLuXOt0ZTLDO4Ea9NW -bash: !tCA5ShLuXOt0ZTLDO4Ea9NW: event not found

DonDebonair commented 6 years ago

@Henry922 your error is different. Your security token contains a ! apparently? And your shell (Bash) can't deal with that. Try putting your security token between quotes