首页 \ 问答 \ Hbase和Zookeeper(Hbase and Zookeeper)

Hbase和Zookeeper(Hbase and Zookeeper)

我安装了HBase 1.0.2,zookeeper-3.4.6和java版本“1.7.0_80”

Zookeeper works fine. But when i tried to start the shell of hbase ia m getting the following error. can anyone please help me out. I am really struct at this point.

The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

my hbase-site.xml file is ,

<property>
    <name>hbase.rootdir</name>
    <value>file:///usr/local/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/usr/local/zookeeper</value>
  </property>

I have installed HBase 1.0.2, zookeeper-3.4.6, and java version "1.7.0_80"

Zookeeper works fine. But when i tried to start the shell of hbase ia m getting the following error. can anyone please help me out. I am really struct at this point.

The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

my hbase-site.xml file is ,

<property>
    <name>hbase.rootdir</name>
    <value>file:///usr/local/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/usr/local/zookeeper</value>
  </property>

原文:https://stackoverflow.com/questions/34825937
更新时间:2023-07-19 12:07

最满意答案

此错误意味着您尝试将32位DLL加载到64位进程或将64位DLL加载到32位进程中。 在Windows上,DLL的位数必须与进程的位数相匹配才能正确加载。

您的本机DLL是32位还是64位? 在您的C#项目构建设置中,您要定位哪个平台? 如果您进入C#项目属性,您可以转到Build选项卡并将“Platform target”更改为特定类似x86或x64的内容,以匹配为您的本机DLL构建的平台。

另一种方法是构建本机DLL以匹配C#应用程序的平台。 但是,如果C#应用程序的平台是AnyCPU,它将在32位Windows上以32位运行,在64位Windows上以64位运行。 因此,您需要32位和64位版本的本机DLL。

我建议将C#应用程序的平台设置为特定的(x86,x64),然后更改本机DLL的平台以匹配。


This error means that you're trying to load a 32-bit DLL into a 64-bit process or a 64-bit DLL into a 32-bit process. On Windows, the bitness of the DLL must match the bitness of the process in order for it to load correctly.

Is your native DLL 32- or 64-bit? In your C# project build settings, what platform are you targeting? If you go into the C# project properties, you can go to the Build tab and change the "Platform target" to something specific like x86 or x64 to match the platform that your native DLL was built for.

The other alternative would be to build the native DLL to match the platform of your C# application. If the C# application's platform is AnyCPU, though, it will run as 32-bit on 32-bit Windows and 64-bit on 64-bit Windows. Because of this, you would need both a 32- and 64-bit version of your native DLL.

I would recommend setting your C# application's platform to something specific (x86, x64) and then change your native DLL's platform to match.

相关问答

更多
  • 是的声明仍然是真的,你不能使用其中任何一个。 只允许管理SL代码。 Yeah the Statement is still true, you cannot use either of them. Just Managed SL-Code is allowed .
  • 这样做最直接的方法是将C#DLL中的一个C#类作为COM对象公开,然后从C / C ++ DLL中创建它的一个实例。 如果这不是一个可接受的选项,则需要创建一个混合模式的C ++ DLL(其中包含托管代码和非托管代码)。 您的C / C ++ DLL可以在您的混合模式DLL中调用导出的函数,这样可以将调用转发给您的C#类。 The most straight forward way of doing this is to expose one of the C# classes in your C# DLL ...
  • 托管windows phone项目中不能引用非托管程序集。 在解决方案中创建Windows运行时组件,作为dll的包装。 您可以将其他非托管dll链接到运行时组件。 请阅读以下链接了解更多详情: 创建Windows运行时组件 如何在Windows Phone Project中导入C ++ dll 从Windows Phone商店应用程序中消费C ++库项目 Windows运行时组件示例-WP8.0 Unmanaged assembly cannot be referenced in managed wind ...
  • 如果您知道在部署之后您的C ++ DLL将与C#DLL(或可执行文件)位于同一文件夹中,那么解决问题的简单方法是使用PostBuild事件(项目属性,构建事件)。 您可以添加一个复制命令,将C ++ DLL放入C#输出文件夹。 I found a very comfortable way, which might have some unexpected drawbacks, but I do not see any so far: I can enable CLR for the C++ DLL proj ...
  • 您可以直接使用PInvoke和DllImport属性来调用它。 当然,假设它有标准的C入口点,而不是编译器特定的C ++入口点。 除非你在谈论C ++ / CLI,在这种情况下,你会引用.NET DLL,就像你引用任何其他.NET DLL一样。 You can call it directly with PInvoke and the DllImport attribute. Assuming, of course, that it has standard C entry points, not comp ...
  • 它在我改变时起作用了: extern "C" __declspec (dllexport) unsigned char test_return() { return 95; } 至 extern "C" __declspec (dllexport) unsigned char __cdecl test_return() { return 95; } 在DLL代码中。 为WinCE编译时为什么不假设这个问题超出了我的意思。 It worked when I changed: extern ...
  • 好的,我找到了答案。 没有办法添加'un_managed C ++ DLL project'作为'托管C#项目'的引用。 正确的连接方法是手动将C ++项目中的* .dll添加到C#项目并执行P / Invoke。 但是在电话会议上仍然失败了,我不知道为什么。 :-P //我找到原因: 有关更多详细信息,请查看我创建的此主题: 如何从[C#WP8.1 WRT / SL]项目调用[Unmanaged C ++ DLL func] OK, I found the answer. There's no way t ...
  • 事实证明,我在设置运行时库时遇到了困难。 将运行时库从/MD更改为C ++ DLL项目的/MDb解决问题。 在VS2010中,可以在以下位置完成: Project -> Properties -> Configuration Properties -> C/C++ -> Code Generation -> Runtime Library -> Multi-threaded Debug DLL (/MDd) It turns out that I am mixed up in setti ...
  • 此错误意味着您尝试将32位DLL加载到64位进程或将64位DLL加载到32位进程中。 在Windows上,DLL的位数必须与进程的位数相匹配才能正确加载。 您的本机DLL是32位还是64位? 在您的C#项目构建设置中,您要定位哪个平台? 如果您进入C#项目属性,您可以转到Build选项卡并将“Platform target”更改为特定类似x86或x64的内容,以匹配为您的本机DLL构建的平台。 另一种方法是构建本机DLL以匹配C#应用程序的平台。 但是,如果C#应用程序的平台是AnyCPU,它将在32位Wi ...
  • 您不需要在C#项目中包含头文件或lib文件。 无论如何,这些文件对你无用。 您得到EntryPointNotFound异常的原因是您为这些入口点提供了不正确的名称。 编译C ++项目时,编译器会通过添加有关参数和返回类型的附加信息来改变名称。 (您可以使用dumpbin.exe实用工具查看这些入口点。) 然而真正的问题是,你的DLL显然包含一个C ++类。 “setFileNameToAnalyze”和“WriteGenbenchData”是该类的实例方法,而不是静态函数。 如果不先创建NB_DPSM类的实 ...

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。