首页 \ 问答 \ HBase与Java 8和zookeeper存在问题(HBase has issues with Java 8 and zookeeper)

HBase与Java 8和zookeeper存在问题(HBase has issues with Java 8 and zookeeper)

我想安装hbase 1.2.4。 当我尝试运行bin/start-hbase.sh我收到以下警告。

OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0'

hbase shell命令生成大量众所周知的zookeeper异常......

ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
WARN  [main] zookeeper.ZKUtil: hconnection-0x1a96d94c0x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
.....
.....

Hadoop已经在运行。 hbase-site.xml包含以下内容。

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

可能的解决方案是什么? 关于VM的Java警告实际上是重要还是可以忽略?


I want to install hbase 1.2.4. When I try to run bin/start-hbase.sh I get the following warnings.

OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0'

The hbase shell command generates a huge number of the well known zookeeper exceptions...

ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
WARN  [main] zookeeper.ZKUtil: hconnection-0x1a96d94c0x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
.....
.....

Hadoop is already running. hbase-site.xml contains the following.

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

What could be the possible solution? Do the Java warnings about VM actually matter or could be ignored?


原文:https://stackoverflow.com/questions/41522002
更新时间:2022-12-16 16:12

最满意答案

有关旋转矩阵的详细解释,请参阅此信息性维基百科文章 。 当旋转90度时,我们注意到cos 90折叠为零,产生以下简单变换,其中x'y'是旋转坐标, xy是前一个坐标。

x' = -y
y' = x

在您的示例中应用此简单替换会产生以下代码。 我还使用了速记集合初始化表达式来增加可读性。

var points = new[]
{
    new Point(-(int) top, (int) top),
    new Point((int) -(top + HEIGHT), (int) top - WIDTH/2),
    new Point((int) -(top + HEIGHT), (int) top + WIDTH/2)
};

paper.FillPolygon(normalBrush, points);

我还建议阅读使用例如Anton Rorres 等人的线性代数。


See this informative Wikipedia article for a great explanation of rotation matrices. When rotating 90 degrees we note that cos 90 collapses into zero yielding the following simple transformation where x' and y' are your rotated coordinates and x and y are the previous coordinates.

x' = -y
y' = x

Applying this simple replacement on your example yields the following code. I've also used a shorthand collection initializer expression for added readability.

var points = new[]
{
    new Point(-(int) top, (int) top),
    new Point((int) -(top + HEIGHT), (int) top - WIDTH/2),
    new Point((int) -(top + HEIGHT), (int) top + WIDTH/2)
};

paper.FillPolygon(normalBrush, points);

I also recommend reading up on linear algebra using for example Anton Rorres, et al.

相关问答

更多
  • 你想要使用的函数是DelaunayTri ,你可以按照下面的步骤去做: 创建多边形中边缘点的列表。 取出多边形的所有顶点,并将它们与要包含在多边形内的附加固定点结合起来。 创建一个约束三角测量(正如我在这里和这里的其他答案中所阐述的)。 如您所述,这将创建凸包的三角剖分(即使您有一个凹多边形),因此您必须使用inOutStatus方法(也在上面链接的答案中说明)去除约束边缘外的三角形。 以下是一些示例代码: polygonVertices = [0 0;... %# Concave polygon ver ...
  • int xpoints[] = {xOrigin, xOrigin+size, xOrigin + size}; int ypoints[] = {yOrigin , yOrigin+size, yOrigin}; g2.fillPolygon(xpoints, ypoints, 3); int xpoints[] = {xOrigin, xOrigin+size, xOrigin + size}; int ypoints[] = {yOrigin , yOrigin+s ...
  • 给定P1 , P2 , P3三角形的点。 我们注意: a = P2 - P1 b = P3 - P1 n = Vector3.CrossProduct(a, b).Normalized() - > n是三角形的法线 三角形在Z = 0平面中,当且仅为, nz = 0然后,只需使用: d = Vector3.CrossProduct(n, z).Normalized() - >它是你的旋转轴 angle = (float)System.Math.Acos(Vector3.DotProduct(n, z)) - ...
  • 要围绕其一个角旋转三角形,该角必须位于坐标的中心。 为此,您可以使用.translate ( x, y, z )方法。 看一下代码片段。 var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 1, 1000); camera.position.set(0, 0, 5); var renderer = new THREE.Web ...
  • 有一个耳剪裁算法非常适合您的用例,可以在这里找到一个例子: 耳夹c# There's ear clipping algorithm that is quite nice for your use case, an example can be found here: Ear clipping c#
  • 有关旋转矩阵的详细解释,请参阅此信息性维基百科文章 。 当旋转90度时,我们注意到cos 90折叠为零,产生以下简单变换,其中x'和y'是旋转坐标, x和y是前一个坐标。 x' = -y y' = x 在您的示例中应用此简单替换会产生以下代码。 我还使用了速记集合初始化表达式来增加可读性。 var points = new[] { new Point(-(int) top, (int) top), new Point((int) -(top + HEIGHT), (int) top - W ...
  • 这是FEM和CFD中的常见问题。 有一些开源软件包可供您查看,看看他们是如何解决这个问题的。 想到的两个是OOF和OpenFOAM 。 This is a common problem in FEM and CFD. There are some open-source packages available that you could look to see how they do this problem. Two that come to mind are OOF and OpenFOAM.
  • 在这里您可以使用css过渡使用以下片段,通过切换css类: $(".triangle").click(function() { $(this).toggleClass("triangle-up"); }) body { margin:20px; } .triangle { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transpa ...
  • 一种方法是使用Path而不是多边形。 就像是:
  • 你忘记了乘以圆的半径。 此外,由于Y轴在UIKit坐标系中指向下方,因此您必须减去而不是添加弧度并在结尾处取消y坐标。 并且你需要使用atan2只给出-pi / 2到pi / 2范围内的输出: float currentAngle = atan2f(deltaY, deltaX); float newAngle = currentAngle - radians; float radious = sqrtf(powf(deltaX, 2.0) + powf(deltaY, 2.0)); float newX ...

相关文章

更多

最新问答

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