Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> set the namenode public IP address in amazon EC2?


Copy link to this message
-
set the namenode public IP address in amazon EC2?
Hi,

I'm trying to configure the Namenode with  a public IP in amazon EC2. The
service always get the host private IP, and not the public one. How can I
set the namenode public IP address?

Here are my configuration files:

$cat hdfs-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->
<configuration>
<property> <name>dfs.replication</name> <value>3</value> </property>
<property> <name>fs.default.name</name> <value>hdfs://
ec2-46-XXXXXX.eu-west-1.compute.amazonaws.com:54310</value> </property>
<property> <name>dfs.data.dir</name>
<value>/home/ubuntu/MRtmp/dfs/data</value> </property>
<property> <name>dfs.permissions</name><value>false</value></property>
<property>
<name>dfs.permissions.enabled</name><value>false</value></property>
<property><name>dfs.datanode.data.dir.perm</name><value>777</value></property>
</configuration>

$ cat core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->

<configuration>
<property><name>hadoop.tmp.dir</name><value>/home/ubuntu/MRtmp/dir/hadoop-${
user.name}</value></property>
<property><name>hadoop.backup.files</name><value>true</value></property>
<property><name>hadoop.tmp.bkp.dir</name><value>/home/ubuntu/MRtmp/backup/dir/hadoop-${
user.name}</value></property>
<property><name>fs.default.name</name><value>hdfs://
ec2-46-XXXXXXXXXXX.eu-west-1.compute.amazonaws.com:54310</value></property>
<property><name>hadoop.security.authentication</name><value>simple</value></property>
<property><name>hadoop.security.authorization</name><value>false</value></property>
</configuration>
--
Best regards,
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB