安装 Pig 包
我必须在安装 Pig 包之前安装 Hadoop。 Hadoop 需要有效的 Java 1.6.x 安装。因此我尝试运行以下命令来安装 sun-java6-jdk:
$ sudo apt-get install sun-java6-jdk
但是我遇到了问题,并且在尝试安装任何其他软件包时收到此错误
回溯(最近一次调用最后一次):文件 “/usr/lib/python2.7/dist-packages/aptdaemon/worker.py”,第 968 行,位于 模拟 trans.unauthenticated = self._simulate_helper(trans) 文件“/usr/lib/python2.7/dist-packages/aptdaemon/worker.py”,第 1092 行,位于 _simulate_helper 返回取决于,self._cache.required_download,\文件“/usr/lib/python2.7/dist-packages/apt/cache.py”,第235行,在 需要下载 pm.get_archives(fetcher, self._list, self._records) SystemError: E:我无法找到 sun-java6-bin 包的文件。这 可能意味着您需要手动修复此包。
如何解决这个问题呢?
I have to install Hadoop before installing Pig package.
Hadoop requires a working Java 1.6.x installation.So I tried to run the following command to install sun-java6-jdk:
$ sudo apt-get install sun-java6-jdk
but I have problems and I obtain this error when trying to install any other package
Traceback (most recent call last): File
"/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 968, in
simulate
trans.unauthenticated = self._simulate_helper(trans) File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1092, in
_simulate_helper
return depends, self._cache.required_download, \ File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 235, in
required_download
pm.get_archives(fetcher, self._list, self._records) SystemError: E:I wasn't able to locate a file for the sun-java6-bin package. This
might mean you need to manually fix this package.
How to solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能意味着您还没有(正确)安装运行 Pig 所需的 Hadoop。
您可以安装在单个节点上进行测试/开发,然后部署在集群上(如果您有权访问)。
安装 Hadoop 指南(单个或集群):
http://hadoop.apache。 org/common/docs/stable/single_node_setup.html
http://hadoop.apache.org/common/docs/stable/cluster_setup.html
Probably means that you have not (correctly) installed Hadoop, which is required for running Pig.
You can either install on a single node for testing / development and then deploy on a cluster if you have access to one.
Guide to install Hadoop (either single or cluster):
http://hadoop.apache.org/common/docs/stable/single_node_setup.html
http://hadoop.apache.org/common/docs/stable/cluster_setup.html