我 试图 在 我 的 macbook air m1 中 安装 hadoop , 但 当 我 输入 jps 时 , 它 没有 显示 所有 节点 , 我 只 会 发送 所有 节点 的 截图
下面 的 代码 是 我 得到 什么 当 我 运行 hdfs namenode -format
- 没有 完全 上传 的 原因 最 大 30000 字符
NameNodeRetryCache
2022-11-11 19:33:22,044 INFO util.GSet: VM type = 64-bit
2022-11-11 19:33:22,044 INFO util.GSet: 0.029999999329447746% max memory 1.8 GB = 559.3 KB
2022-11-11 19:33:22,044 INFO util.GSet: capacity = 2^16 = 65536 entries
Re-format filesystem in Storage Directory root= /tmp/hadoop-vignesh/dfs/name; location= null ? (Y or N)
中 的 每 一 个
我 不 知道 我 应该 按 Y/N , 但 我 两 个 都 试 过 了 , 都 不 起 作用
当 我 分别 按 Y 和 N 时 , 将 显示
2022-11-11 19:38:13,905 INFO namenode.FSImage: Allocated new BlockPoolId: BP-409547403-127.0.0.1-1668175693876
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]
2022-11-11 19:38:13,938 INFO common.Storage: Storage directory /tmp/hadoop-vignesh/dfs/name has been successfully formatted.
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
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 .
2022-11-11 19:38:14,075 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
2022-11-11 19:38:14,093 INFO namenode.FSNamesystem: Stopping services started for active state
2022-11-11 19:38:14,093 INFO namenode.FSNamesystem: Stopping services started for standby state
2022-11-11 19:38:14,097 INFO namenode.FSImage: FSImageSaver clean checkpoint: txid=0 when meet shutdown.
2022-11-11 19:38:14,097 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at Vigneshs-MacBook-Air.local/127.0.0.1
格式
和 N
Format aborted in Storage Directory root= /tmp/hadoop-vignesh/dfs/name; location= null
2022-11-11 19:41:56,728 INFO namenode.FSNamesystem: Stopping services started for active state
2022-11-11 19:41:56,729 INFO namenode.FSNamesystem: Stopping services started for standby state
2022-11-11 19:41:56,737 INFO util.ExitUtil: Exiting with status 1: ExitException
2022-11-11 19:41:56,746 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at Vigneshs-MacBook-Air.local/127.0.0.1
格式
when i press "start-all.sh " i get
WARNING: Attempting to start all Apache Hadoop daemons as vignesh in 10 seconds.
WARNING: This is not a recommended production deployment configuration.
WARNING: Use CTRL-C to abort.
Starting namenodes on [Vigneshs-MacBook-Air.local]
Starting datanodes
Starting secondary namenodes [Vigneshs-MacBook-Air.local]
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
Starting resourcemanager
Starting nodemanagers
格式
当 " jps "
43457 Jps
43284 ResourceManager
43386 NodeManager
格式
我 尝试 安装 hadoop , 我 希望 localhoest : 9870 可以 工作
1条答案
按热度按时间pxyaymoc1#
但是我两种都试过了,都不起作用
两者都按预期工作。你按Y -它说
has been successfully formatted.
;您可以按N -Format aborted
。不要使用
start-all
。这是过时的。你可以使用start-dfs
,但它可能会有相同的行为。在这两种情况下,你必须找到namenode守护进程日志文件,并打开它,找到真实的的错误,关于为什么进程没有启动。但是,稍后在ARM上运行Hadoop时可能会遇到其他问题