New Contributor
Posts: 2
Registered: ‎02-22-2014
Accepted Solution

Connect to CDH4.5 From Other Servers

I have a CDH4.5 cluster, and I want to upload files into it from another server (e.g. database server).


With vanilla Hadoop and Hive, I can change the configuration files, pointing the namenode and metastore to remote services, and simply run:


dba@db-001$ hadoop fs -copyFromLocal /path/to/export.tsv
dba@db-001$ hive -e "load data local inpath '/path/to/export.tsv' into table test.my_table"


But how about CDH? What components should I install on other servers?

Posts: 416
Topics: 51
Kudos: 88
Solutions: 49
Registered: ‎06-26-2013

Re: Connect to CDH4.5 From Other Servers

I think what you're describing is what we refer to as a "Gateway" machine.  On a cluster under Cloudera Manager's control, we allow you to add the "Gateway" role to a machine outside the cluster.  This installs the base CDH packages and deploys client configurations to that machine so that it can run regular hadoop commands like you describe and can upload files and run jobs against the cluster.


It sounds like your database server is already able to do this, can you clarify the question?