{"id":20062149,"url":"https://github.com/listen180/hadoop-notes","last_synced_at":"2025-09-13T13:15:26.186Z","repository":{"id":144101665,"uuid":"175575912","full_name":"Listen180/Hadoop-Notes","owner":"Listen180","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-18T09:16:10.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T22:32:58.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Listen180.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-14T08:05:15.000Z","updated_at":"2019-03-18T09:16:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bc14719-a94e-45cb-a2aa-924ac72f9717","html_url":"https://github.com/Listen180/Hadoop-Notes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Listen180%2FHadoop-Notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Listen180%2FHadoop-Notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Listen180%2FHadoop-Notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Listen180%2FHadoop-Notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Listen180","download_url":"https://codeload.github.com/Listen180/Hadoop-Notes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241489465,"owners_count":19971057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T13:27:44.040Z","updated_at":"2025-03-02T10:22:47.523Z","avatar_url":"https://github.com/Listen180.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hadoop Notes\n\n\n## Some commonly used commands\n\n查看集群上的分布式存储文件: \n```shell\n$ hadoop fs -text {path-to-file} | head\n```\n\n将结果保存到本地文件系统(指的是连接hadoop集群的机器): \n```shell\n$ hadoop fs -get {path-to-file} {save-path}\n\n$ hadoop fs -getmerge {path-to-file-part*} {save-path}\n```\n\nKill hadoop任务: \n```shell\n$ hadoop job -kill {job_id}\n\n$ yarn application -kill {application_id}\n```\n\n删除已有的集群上目标文件目录(当存在同样的目标目录时，hadoop执行时会自动放弃执行): \n```shell\n$ hadoop fs -rm -r {path-to-folder}\n```\n\n查看集群上文件的行数: \n```shell\n$ hadoop fs -cat {path-to-file} | wc -l\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisten180%2Fhadoop-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisten180%2Fhadoop-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisten180%2Fhadoop-notes/lists"}