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
最满意答案
此错误意味着您尝试将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 ...
-
在Windows CE上从C#调用的C ++ DLL for ARM始终返回0(C++ DLL Called From C# on Windows CE for ARM Always Returns 0)[2022-04-08]
它在我改变时起作用了: 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 ... -
如何从Windows Phone上的C#项目调用C ++ DLL函数(How to call a C++ DLL function from C# project on Windows Phone)[2023-11-23]
好的,我找到了答案。 没有办法添加'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 ... -
无法在C#Windows应用程序下写入C ++ DLL项目中的文件(Unable to write to files in C++ dll project under C# Windows Application)[2022-02-23]
事实证明,我在设置运行时库时遇到了困难。 将运行时库从/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#调用C ++ dll获取EntryPointNotFoundException(C# call a C++ dll get EntryPointNotFoundException)[2022-12-19]
您不需要在C#项目中包含头文件或lib文件。 无论如何,这些文件对你无用。 您得到EntryPointNotFound异常的原因是您为这些入口点提供了不正确的名称。 编译C ++项目时,编译器会通过添加有关参数和返回类型的附加信息来改变名称。 (您可以使用dumpbin.exe实用工具查看这些入口点。) 然而真正的问题是,你的DLL显然包含一个C ++类。 “setFileNameToAnalyze”和“WriteGenbenchData”是该类的实例方法,而不是静态函数。 如果不先创建NB_DPSM类的实 ...