java -version java version "1.8.0_321" Java(TM) SE Runtime Environment (build 1.8.0_321-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
The following packages have unmet dependencies: openssh-server : Depends: openssh-client (= 1:7.2p2-4ubuntu2.10) Depends: openssh-sftp-server but it is not going to be installed Recommends: ssh-import-id but it is not going to be installed E: Unable to correct problems, you have held broken packages.
$ hadoop version Hadoop 3.3.2 Source code repository git@github.com:apache/hadoop.git -r 0bcb014209e219273cb6fd4152df7df713cbac61 Compiled by chao on 2022-02-21T18:39Z Compiled with protoc 3.7.1 From source with checksum 4b40fff8bb27201ba07b6fa5651217fb This command was run using /home/trick/hadoop-3.3.2/share/hadoop/common/hadoop-common-3.3.2.jar
hadoop伪分布式配置
1.修改core-site.xml文件
~/hadoop-3.3.2/etc/hadoop 目录下 core-site.xml 文件
1
sudo vim core-site.xml
1 2 3 4 5 6 7 8 9 10 11
<configuration> <property> <name>hadoop.tmp.dir</name> <value>file:/home/trick/hadoop-3.3.2/tmp</value> <description>Abase for other temporary directories.</description> </property> <property> <name>fs.defaultFS</name> <value>hdfs://localhost:9000</value> </property> </configuration>