安装配置单元后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
最满意答案
- 如果您有备份/源代码管理,则可以重新同步旧版本。
备份/搁置现有的内容,并将其保留在系统中。 然后,尝试仅替换项目文件,将源代码和数据保留在原位。 重新对项目进行更改,您将撤消损坏。
如果您没有源代码管理或备份,并且没有删除您的代码/数据,您可能仍然很幸运。 您必须从头开始重新创建项目文件,而不是上一个保存点,但您只需导入现有代码即可。
如果你没有任何这些,并且你删除了源代码,那么你就不走运了
无论如何,下一步是获取并使用源代码控制和/或开始自动备份代码。 每个人都会犯这样的错误,这就是源控制/备份存在的原因。 你必须使用它们。
- 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.)
-
为XCode项目设置存储库(Set repository for XCode project)[2021-09-12]
在管理器中使用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.
-
如果您有备份/源代码管理,则可以重新同步旧版本。 备份/搁置现有的内容,并将其保留在系统中。 然后,尝试仅替换项目文件,将源代码和数据保留在原位。 重新对项目进行更改,您将撤消损坏。 如果您没有源代码管理或备份,并且没有删除您的代码/数据,您可能仍然很幸运。 您必须从头开始重新创建项目文件,而不是上一个保存点,但您只需导入现有代码即可。 如果你没有任何这些,并且你删除了源代码,那么你就不走运了 无论如何,下一步是获取并使用源代码控制和/或开始自动备份代码。 每个人都会犯这样的错误,这就是源控制/备份存在的原 ...
-
Xcode:项目中的项目(Xcode: Project in Project)[2023-04-03]
您应该使用子项目构建静态库(.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 ...