安装 Hadoop 时 使用 " jps " 时 , 不 显示 名称 节点 和 数据 节点

1rhkuytd  于 2022-11-21  发布在  Hadoop
关注(0)|答案(1)|浏览(388)

我 试图 在 我 的 macbook air m1 中 安装 hadoop , 但 当 我 输入 jps 时 , 它 没有 显示 所有 节点 , 我 只 会 发送 所有 节点 的 截图
下面 的 代码 是 我 得到 什么 当 我 运行 hdfs namenode -format - 没有 完全 上传 的 原因 最 大 30000 字符

  1. NameNodeRetryCache
  2. 2022-11-11 19:33:22,044 INFO util.GSet: VM type = 64-bit
  3. 2022-11-11 19:33:22,044 INFO util.GSet: 0.029999999329447746% max memory 1.8 GB = 559.3 KB
  4. 2022-11-11 19:33:22,044 INFO util.GSet: capacity = 2^16 = 65536 entries
  5. Re-format filesystem in Storage Directory root= /tmp/hadoop-vignesh/dfs/name; location= null ? (Y or N)

中 的 每 一 个
我 不 知道 我 应该 按 Y/N , 但 我 两 个 都 试 过 了 , 都 不 起 作用
当 我 分别 按 Y 和 N 时 , 将 显示

  1. 2022-11-11 19:38:13,905 INFO namenode.FSImage: Allocated new BlockPoolId: BP-409547403-127.0.0.1-1668175693876
  2. 2022-11-11 19:38:13,907 INFO common.Storage: Will remove files: [/tmp/hadoop-vignesh/dfs/name/current/fsimage_0000000000000000000, /tmp/hadoop-vignesh/dfs/name/current/VERSION, /tmp/hadoop-vignesh/dfs/name/current/fsimage_0000000000000000000.md5, /tmp/hadoop-vignesh/dfs/name/current/seen_txid]
  3. 2022-11-11 19:38:13,938 INFO common.Storage: Storage directory /tmp/hadoop-vignesh/dfs/name has been successfully formatted.
  4. 2022-11-11 19:38:13,981 INFO namenode.FSImageFormatProtobuf: Saving image file /tmp/hadoop-vignesh/dfs/name/current/fsimage.ckpt_0000000000000000000 using no compression
  5. 2022-11-11 19:38:14,067 INFO namenode.FSImageFormatProtobuf: Image file /tmp/hadoop-vignesh/dfs/name/current/fsimage.ckpt_0000000000000000000 of size 402 bytes saved in 0 seconds .
  6. 2022-11-11 19:38:14,075 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
  7. 2022-11-11 19:38:14,093 INFO namenode.FSNamesystem: Stopping services started for active state
  8. 2022-11-11 19:38:14,093 INFO namenode.FSNamesystem: Stopping services started for standby state
  9. 2022-11-11 19:38:14,097 INFO namenode.FSImage: FSImageSaver clean checkpoint: txid=0 when meet shutdown.
  10. 2022-11-11 19:38:14,097 INFO namenode.NameNode: SHUTDOWN_MSG:
  11. /************************************************************
  12. SHUTDOWN_MSG: Shutting down NameNode at Vigneshs-MacBook-Air.local/127.0.0.1

格式
和 N

  1. Format aborted in Storage Directory root= /tmp/hadoop-vignesh/dfs/name; location= null
  2. 2022-11-11 19:41:56,728 INFO namenode.FSNamesystem: Stopping services started for active state
  3. 2022-11-11 19:41:56,729 INFO namenode.FSNamesystem: Stopping services started for standby state
  4. 2022-11-11 19:41:56,737 INFO util.ExitUtil: Exiting with status 1: ExitException
  5. 2022-11-11 19:41:56,746 INFO namenode.NameNode: SHUTDOWN_MSG:
  6. /************************************************************
  7. SHUTDOWN_MSG: Shutting down NameNode at Vigneshs-MacBook-Air.local/127.0.0.1

格式
when i press "start-all.sh " i get

  1. WARNING: Attempting to start all Apache Hadoop daemons as vignesh in 10 seconds.
  2. WARNING: This is not a recommended production deployment configuration.
  3. WARNING: Use CTRL-C to abort.
  4. Starting namenodes on [Vigneshs-MacBook-Air.local]
  5. Starting datanodes
  6. Starting secondary namenodes [Vigneshs-MacBook-Air.local]
  7. 2022-11-11 19:44:45,167 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  8. Starting resourcemanager
  9. Starting nodemanagers

格式
当 " jps "

  1. 43457 Jps
  2. 43284 ResourceManager
  3. 43386 NodeManager

格式
我 尝试 安装 hadoop , 我 希望 localhoest : 9870 可以 工作

pxyaymoc

pxyaymoc1#

但是我两种都试过了,都不起作用
两者都按预期工作。你按Y -它说has been successfully formatted.;您可以按N -Format aborted
不要使用start-all。这是过时的。你可以使用start-dfs,但它可能会有相同的行为。在这两种情况下,你必须找到namenode守护进程日志文件,并打开它,找到真实的的错误,关于为什么进程没有启动。
但是,稍后在ARM上运行Hadoop时可能会遇到其他问题

相关问题