Skip to content

Tag: hadoop

Why can’t DataNode download file?

It’s very strange.I have seen NameNode and DataNode that they have already started in jps command.I can go into the NameNode WebSite(50070) and use “hdfs dfs -get” to get file.But I can’t download file from the NameNode WebSite. Answer The problem is because the /etc/hosts file.I confi…

How to sync configuration between hadoop worker machines

We have huge hadoop cluster and we installed one coordinator preso node and 850 presto workers nodes. now we want to change the values in the file – config.properties but this should be done on all the workers! so under the file is like this and we want to change it to but this was done only on the firs…

Ambari cluster + Service Auto Start Configuration by API

Ambari services can be configured to start automatically on system boot. Each service can be configured to start all components, masters and workers, or selectively. so how to enable all services in ambari cluster to start automatically on system boot by API ? Remark – by default all services are disabl…

How to store log files of a shell script in HDFS

I have shell script in HDFS. I want to collect the logs for this script in HDFS only. The contents of the script are below: The logs are not appending to the files. only the files are being created. How can I get the files to have the result of the function to be appended in HDFS Answer The logs