How to use appnedToFile command in HDFS?

0 votes
Can anyone suggest how to use appendToFile command in HDFS?
Jun 19, 2019 in Big Data Hadoop by Ranjan
137 views

1 answer to this question.

0 votes

Hey,

This Hadoop fs command appends single sources or multiple sources from local file system to the file system at the destination. It also reads input from standard input and adds it to the destination file system.

You can use this command usage:

hadoop fs -appendToFile <localsource> ... <dst

You can use this example as well:

hadoop fs -appendToFile /home/dataflair/Desktop/sample /user/dataflair/dir1
answered Jun 19, 2019 by Gitika
• 25,440 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How can I use my host machine’s web browser to check my HDFS services running in the VM?

The sole purpose of the virtual machine ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by Shubham
• 13,370 points
179 views
0 votes
1 answer

How to count lines in a file on hdfs command?

Use the below commands: Total number of files: hadoop ...READ MORE

answered Aug 10, 2018 in Big Data Hadoop by Neha
• 6,280 points
4,348 views
0 votes
1 answer

How to use jar file without putting it in hdfs?

If by "using", you mean distributing it, ...READ MORE

answered Dec 5, 2018 in Big Data Hadoop by Omkar
• 68,840 points
54 views
0 votes
1 answer

How to use custom FileInputFormat in MapReduce?

You have to override isSplitable method. ...READ MORE

answered Apr 10, 2018 in Big Data Hadoop by Shubham
• 13,370 points
172 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
3,838 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
521 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
20,308 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,290 points
1,436 views
0 votes
1 answer

How to start Command Line Interface in Zookeeper?

Hey, To start the CLI for zookeeper you can ...READ MORE

answered May 27, 2019 in Big Data Hadoop by Gitika
• 25,440 points
56 views
0 votes
1 answer

How to use Hbase shell in a bash script?

Hello, To write scripts with HBase shell it includes non-interactive mode, ...READ MORE

answered May 29, 2019 in Big Data Hadoop by Gitika
• 25,440 points
198 views