ubuntu 19.10中安装hadoop出错

ubuntu 19.10中安装hadoop出错

我在 Ubuntu 19.10 上安装 Hadoop 时遇到以下错误https://hadoop.apache.org/releases.html 文件版本https://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-3.1.3/hadoop-3.1.3-src.tar.gz 根据编译过程中 BUILDING.txt 文件中给出的说明,我收到以下错误

In file included from ./google/protobuf/io/tokenizer.h:42:0,
                 from google/protobuf/io/tokenizer.cc:91:
./google/protobuf/stubs/strutil.h: In function 'google::protobuf::int64 google::protobuf::strto64(const char*, char**, int)':
./google/protobuf/stubs/strutil.h:319:25: warning: typedef 'sizeof_int64_is_not_sizeof_long_long' locally defined but not used [-Wunused-local-typedefs]
                         sizeof_int64_is_not_sizeof_long_long);
                         ^
./google/protobuf/stubs/common.h:382:11: note: in definition of macro 'GOOGLE_COMPILE_ASSERT'
           msg[bool(expr) ? 1 : -1]
           ^
./google/protobuf/stubs/strutil.h: In function 'google::protobuf::uint64 google::protobuf::strtou64(const char*, char**, int)':
./google/protobuf/stubs/strutil.h:325:25: warning: typedef 'sizeof_uint64_is_not_sizeof_long_long' locally defined but not used [-Wunused-local-typedefs]
                         sizeof_uint64_is_not_sizeof_long_long);
                         ^
./google/protobuf/stubs/common.h:382:11: note: in definition of macro 'GOOGLE_COMPILE_ASSERT'
 msg[bool(expr) ? 1 : -1]
           ^

如何解决上述错误?

debian@osboxes:~/hadoop/hadoop-3.1.3-src$ sudo apt-get update --fix-missing
Hit:1 http://ppa.launchpad.net/linuxuprising/java/ubuntu eoan InRelease        
Hit:2 http://archive.ubuntu.com/ubuntu eoan InRelease                          
Get:3 http://archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]        
Ign:4 https://download.docker.com/linux/ubuntu eoan InRelease
Err:5 https://download.docker.com/linux/ubuntu eoan Release                    
  404  Not Found [IP: 13.249.210.98 443]
Get:6 http://archive.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB]       
Get:7 http://archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]      
Reading package lists... Done                                                  
E: The repository 'https://download.docker.com/linux/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

并且

debian@osboxes:~/hadoop/hadoop-3.1.3-src$ sudo apt-get update
Err:1 http://ppa.launchpad.net/linuxuprising/java/ubuntu eoan InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:2 https://download.docker.com/linux/ubuntu eoan InRelease            
  Temporary failure resolving 'download.docker.com'
Err:3 http://archive.ubuntu.com/ubuntu eoan InRelease                    
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu eoan-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu eoan-security InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu eoan-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-security/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/eoan/InRelease  Temporary failure resolving 'download.docker.com'
W: Failed to fetch http://ppa.launchpad.net/linuxuprising/java/ubuntu/dists/eoan/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
debian@osboxes:~/Hadoop

编辑
经过 2-3 天的安装和重新安装以及重建,我想我成功了。我得到了一些东西,我可以在下面的屏幕截图中看到
我收到提示

现在我应该做什么?这似乎是某种 Hadoop 环境,但我对此很陌生,所以我不知道下一步该做什么?我必须做一些编程作业问题,比如我也想从 shell 中学习 Hadoop,我看到上面我应该输入什么命令或如何在其中进行编程等。

答案1

如果你在安装 Hadoop 时仍然遇到问题,可以查看这是一个链接,这个过程对我来说很顺利(debian)。

相关内容