Haddop Commands Cheatsheet - Tổng hợp lệnh Hadoop HDFS
- 페이지 수
- 2
- 형식
- 크기
- 50.6 KB
- 조회수
- 0
- 댓글
- 0
- Lượt tải
- 0
미리보기 생성 중...
Bảng tra cứu nhanh các lệnh Hadoop HDFS, bao gồm liệt kê tệp, đọc/ghi, tải lên/xuống và quản lý tệp.
- 문서명
- Haddop Commands Cheatsheet - Tổng hợp lệnh Hadoop HDFS
- 내용
- Tài liệu cung cấp các lệnh Hadoop HDFS thiết yếu để liệt kê, đọc, ghi, tải lên/xuống, sao chép, di chuyển và xóa tệp/thư mục. Nó là một công cụ tham khảo nhanh cho các thao tác HDFS.
- 목차
- 이 문서는 명확한 목차가 없습니다.
- 페이지 수
- 2 페이지
- 업로더
- Uni24h
설명
Trích nội dung tài liệu
Hadoop HDFS Command Cheatsheet List Files hdfs dfs -ls / List all the files/directories for the given hdfs destination path. Directories are listed as plain files. In this case, this command will list the details of hadoop folder. Format file sizes in a human-readable fashion (eg 64.0m instead of 67108864). Recursively list all files in hadoop directory and all subdirectories in hadoop directory. hdfs dfs -ls -d /hadoop hdfs dfs -ls -h /data hdfs dfs -ls -R /hadoop List all the files matching the pattern. In this case, it will list all the files inside hadoop directory which starts with 'dat'. hdfs dfs -ls /hadoop/dat* Read/Write Files HDFS Command that takes a source file and outputs the file in text format on the terminal. The allowed formats are zip and TextRecordInputStream. This command will display the content of the HDFS file test on your stdout . hdfs dfs -text /hadoop/derby.log hdfs dfs -cat /hadoop/test hdfs dfs -appendToFile /home/ubuntu/test1 /hadoop/text2 Appends the content of a local file test1 to a hdfs file test2. Upload/Download Files hdfs dfs -put /home/ubuntu/sample /hadoop Copies the file from local file system to HDFS. Copies the file from local file system to HDFS, and in case the local already exits in the given destination path, using -f option with put command will overwrite it. hdfs dfs -put -f /home/ubuntu/sample /hadoop hdfs dfs -put -l /home/ubuntu/sample /hadoop Copies the file from local file system to HDFS. Allow DataNode to lazily persist the file to disk. Forces replication factor of 1. hdfs dfs -put -p /home/ubuntu/sample /hadoop Copies the file from local file system to HDFS. Passing -p preserves access and modification times, ownership and the mode. hdfs dfs -get /newfile /home/ubuntu/ Copies the file from HDFS to local file system. hdfs dfs -get -p /newfile /home/ubuntu/ Copies the file from HDFS to local file system. Passing -p preserves access and modification times, ownership and the mode. hdfs dfs -get /h
자주 묻는 질문
이 문서는 무료인가요?
네. “Haddop Commands Cheatsheet - Tổng hợp lệnh Hadoop HDFS” 문서는 무료입니다. 로그인 후 '다운로드'를 클릭하여 원본 파일을 받으세요.
이 문서는 몇 페이지로 되어 있나요?
이 문서는 2페이지입니다. 다운로드하기 전에 온라인으로 미리 볼 수 있습니다.
다운로드하기 전에 미리 볼 수 있나요?
네. 이 페이지의 온라인 리더를 통해 문서를 미리 본 후 다운로드 여부를 결정할 수 있습니다.
Haddop Commands Cheatsheet - Tổng hợp lệnh Hadoop HDFS
미리보기 생성 중...
Trích nội dung tài liệu
Hadoop HDFS Command Cheatsheet List Files hdfs dfs -ls / List all the files/directories for the given hdfs destination path. Directories are listed as plain files. In this case, this command will list the details of hadoop folder. Format file sizes in a human-readable fashion (eg 64.0m instead of 67108864). Recursively list all files in hadoop directory and all subdirectories in hadoop directory. hdfs dfs -ls -d /hadoop hdfs dfs -ls -h /data hdfs dfs -ls -R /hadoop List all the files matching the pattern. In this case, it will list all the files inside hadoop directory which starts with 'dat'. hdfs dfs -ls /hadoop/dat* Read/Write Files HDFS Command that takes a source file and outputs the file in text format on the terminal. The allowed formats are zip and TextRecordInputStream. This command will display the content of the HDFS file test on your stdout . hdfs dfs -text /hadoop/derby.log hdfs dfs -cat /hadoop/test hdfs dfs -appendToFile /home/ubuntu/test1 /hadoop/text2 Appends the content of a local file test1 to a hdfs file test2. Upload/Download Files hdfs dfs -put /home/ubuntu/sample /hadoop Copies the file from local file system to HDFS. Copies the file from local file system to HDFS, and in case the local already exits in the given destination path, using -f option with put command will overwrite it. hdfs dfs -put -f /home/ubuntu/sample /hadoop hdfs dfs -put -l /home/ubuntu/sample /hadoop Copies the file from local file system to HDFS. Allow DataNode to lazily persist the file to disk. Forces replication factor of 1. hdfs dfs -put -p /home/ubuntu/sample /hadoop Copies the file from local file system to HDFS. Passing -p preserves access and modification times, ownership and the mode. hdfs dfs -get /newfile /home/ubuntu/ Copies the file from HDFS to local file system. hdfs dfs -get -p /newfile /home/ubuntu/ Copies the file from HDFS to local file system. Passing -p preserves access and modification times, ownership and the mode. hdfs dfs -get /h
- 문서명
- Haddop Commands Cheatsheet - Tổng hợp lệnh Hadoop HDFS
- 내용
- Tài liệu cung cấp các lệnh Hadoop HDFS thiết yếu để liệt kê, đọc, ghi, tải lên/xuống, sao chép, di chuyển và xóa tệp/thư mục. Nó là một công cụ tham khảo nhanh cho các thao tác HDFS.
- 목차
- 이 문서는 명확한 목차가 없습니다.
- 페이지 수
- 2 페이지
- 업로더
- Uni24h
댓글 (0)
댓글이 없습니다. 첫 댓글을 남겨보세요!
Ngân hàng đề thi môn: Hệ thống thông tin quản lý
Đề thi môn Cơ sở dữ liệu (kèm Đáp án) - Đại học Sư phạm kỹ thuật
Đề thi và đáp án môn Hệ thống thông tin kế toán
Đề thi và đáp án môn Cấu trúc dữ liệu giải thuật
Đáp án đề thi môn Mạng máy tính - ĐH Công nghệ thông tin (CNTT)
Tổng hợp Đề Toán 5 - Luyện thi vào Lớp 6 - CLB EMath
Bài giảng vật lý đại cương (Chương 3) - Đỗ Ngọc Uấn
Chương 8.Nguyên tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang

댓글 (0)
댓글이 없습니다. 첫 댓글을 남겨보세요!