首页 \ 问答 \ 安装配置单元后Hadoop(本地和主机目标不匹配)(Hadoop (local and host destination do not match) after installing hive)

安装配置单元后Hadoop(本地和主机目标不匹配)(Hadoop (local and host destination do not match) after installing hive)

我在运行ubuntu的笔记本电脑上安装了Hadoop 2.2作为单节点集群并运行了字数计数示例。 之后我安装了Hive并且Hadoop开始出错了,即

hdfs dfs -ls throws IOException : localhost is "utbuntu/127.0.1.1 and destination host is localhost:9000"

我在hosts文件中找到了以下两个条目

127.0.0.1 localhost
127.0.1.1 ubuntu
#and some IPv6 entries...

我的问题是为什么在配置配置单元后出现错误以及解决方案是什么? 任何帮助都非常感谢。

谢谢!


I have installed Hadoop 2.2 on my laptop running ubuntu as single node cluster and run the word count example. After that I installed Hive and Hadoop started to give error i.e.

hdfs dfs -ls throws IOException : localhost is "utbuntu/127.0.1.1 and destination host is localhost:9000"

I found the below two entries in my hosts file

127.0.0.1 localhost
127.0.1.1 ubuntu
#and some IPv6 entries...

My question is why it is giving error after configuring hive and what is the solution? Any help is really appreciated.

Thanks!


原文:https://stackoverflow.com/questions/20161078
更新时间:2023-05-01 17:05

最满意答案

  • 如果您有备份/源代码管理,则可以重新同步旧版本。

备份/搁置现有的内容,并将其保留在系统中。 然后,尝试仅替换项目文件,将源代码和数据保留在原位。 重新对项目进行更改,您将撤消损坏。

  • 如果您没有源代码管理或备份,并且没有删除您的代码/数据,您可能仍然很幸运。 您必须从头开始重新创建项目文件,而不是上一个保存点,但您只需导入现有代码即可。

  • 如果你没有任何这些,并且你删除了源代码,那么你就不走运了

无论如何,下一步是获取并使用源代码控制和/或开始自动备份代码。 每个人都会犯这样的错误,这就是源控制/备份存在的原因。 你必须使用它们。


  • If you have backups/source control, you can re-sync your old version.

Back up/shelve what you have now, and leave it checked out/on your system. Then, try to replace just the project file(s), leaving your source code and data in-place. Re-do the changes to your project(s), and you will have undone the damage.

  • If you don't have source control or backups, and you didn't delete your code/data, you may still be in luck. You'll have to re-create your project files from scratch, rather than your last save point, but you can simply import your existing code.

  • If you don't have any of those, and you deleted the source, then you are out of luck

No matter what, your next step is to get and use source control and/or start doing automatic backups of your code. Everyone makes mistakes like this, and this is why source control/backups exist. You must use them.

相关问答

更多
  • 那里确实有一些XCode模板信息。 我感兴趣的是以下链接(我自己记录了这个主题,但还没有更进一步): 谷歌代码搜索揭示了一些例子 ,但并不多 特别是,我发现有趣的是看看Three20提供的代码; 他们有一些基本的例子,就像这里 引用另一个项目为我工作,所以也许你可以打开一个具体的问题,提供更多的细节? 有分散在Apple邮件列表中的信息 没有来自苹果的官方文档,正如这个查询缺乏结果所证明的那样 我很抱歉,如果这不是一个启发,简洁的答案。 正如你所说,它没有很好的文件记录,并且来源遍布全球。 我只希望我能突出 ...
  • 这是没有工作区的项目? 关闭Xcode。 备份.xcodeproj,然后右键单击原始和显示包内容 。 Inisde,你会看到一个名为project.xcworkspace的文件。 这是当Xcode工作空间打开时Xcode创建的工作区,它包含这个分组信息。 将其移动到垃圾桶,并重新打开Xcode中的项目; 它将生成一个新的默认project.xcworkspace,而不进行分组。 This is a project without a workspace? Close Xcode. Back up the . ...
  • 只需删除项目文件夹中的.git目录即可。 您应该首先在Xcode中关闭项目以安全。 Just remove the .git directory in the project folder. You should close the project in Xcode first to be safe.
  • 我只是自己做了,想出如何快速补救这个问题。 转到Finder中的项目文件夹。 您应该会发现文件夹Images.xcassets仍然存在。 将其移动到单独的位置,如桌面或某些东西。 它仍然具有所有的图像和json文件。 跳回Xcode并为图像创建一个新的资产目录。 File > New > File... > Resource > Asset Catalog 将其命名为图像 。 退出Xcode并返回到Finder。 将文件夹从旧的 Images.xcassets复制到项目中的新的 Images.xcasset ...
  • 我升级到XCode 4.2,这个问题就消失了。 (仍接受有关项目组织的建议。) I upgraded to XCode 4.2 and this problem went away. (Still accepting advice on project organization.)
  • 在管理器中使用Repository-Tab中的“Add working copy ...”重新设置后 - 重新启动Xcode4。 这在Xcode 4.2的一分钟之前就可以用了 After setting it up again by using "Add working copy..." from the Repository-Tab in the Organizer - restart Xcode4. This worked for me a minute ago with Xcode 4.2
  • 将其拖放到Xcode的项目导航器中 取消选中“如果需要,复制项目” drag and drop it to Xcode's project navigator uncheck "Copy items if needed"
  • 通过右键单击.xcode文件打开Xcode项目,然后单击打开选项并选择最新的Xcode应用程序。 Open the Xcode project by Right click the .xcode file and click the open with option and choose the latest Xcode application.
  • 如果您有备份/源代码管理,则可以重新同步旧版本。 备份/搁置现有的内容,并将其保留在系统中。 然后,尝试仅替换项目文件,将源代码和数据保留在原位。 重新对项目进行更改,您将撤消损坏。 如果您没有源代码管理或备份,并且没有删除您的代码/数据,您可能仍然很幸运。 您必须从头开始重新创建项目文件,而不是上一个保存点,但您只需导入现有代码即可。 如果你没有任何这些,并且你删除了源代码,那么你就不走运了 无论如何,下一步是获取并使用源代码控制和/或开始自动备份代码。 每个人都会犯这样的错误,这就是源控制/备份存在的原 ...
  • 您应该使用子项目构建静态库(.a文件),并在主项目中设置User Header Search Paths 。 供参考: http://www.cocoanetics.com/2011/12/sub-projects-in-xcode/ http://www.blog.montgomerie.net/easy-xcode-static-library-subprojects-and-submodules You should build static library (.a files) with sub-p ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。