Advertisement
mine260309

Untitled

Aug 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. $ cat /usr/local/hbase-2.2.0/conf/hbase-site.xml
  2. <?xml version="1.0"?>
  3. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  4. <!--
  5. /**
  6. *
  7. * Licensed to the Apache Software Foundation (ASF) under one
  8. * or more contributor license agreements. See the NOTICE file
  9. * distributed with this work for additional information
  10. * regarding copyright ownership. The ASF licenses this file
  11. * to you under the Apache License, Version 2.0 (the
  12. * "License"); you may not use this file except in compliance
  13. * with the License. You may obtain a copy of the License at
  14. *
  15. * http://www.apache.org/licenses/LICENSE-2.0
  16. *
  17. * Unless required by applicable law or agreed to in writing, software
  18. * distributed under the License is distributed on an "AS IS" BASIS,
  19. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. * See the License for the specific language governing permissions and
  21. * limitations under the License.
  22. */
  23. -->
  24. <configuration>
  25. <property>
  26. <name>hbase.rootdir</name>
  27. <!-- <value>file:///home/root/hbase</value> -->
  28. <value>hdfs://localhost:9000/hbase</value>
  29. </property>
  30. <property>
  31. <name>hbase.zookeeper.property.dataDir</name>
  32. <value>/home/root/zookeeper</value>
  33. </property>
  34.  
  35. <property>
  36. <name>hbase.cluster.distributed</name>
  37. <value>true</value>
  38. </property>
  39.  
  40.  
  41. <property>
  42. <name>hbase.unsafe.stream.capability.enforce</name>
  43. <!-- <value>false</value> -->
  44. <value>false</value>
  45. <description>
  46. Controls whether HBase will check for stream capabilities (hflush/hsync).
  47.  
  48. Disable this if you intend to run on LocalFileSystem, denoted by a rootdir
  49. with the 'file://' scheme, but be mindful of the NOTE below.
  50.  
  51. WARNING: Setting this to false blinds you to potential data loss and
  52. inconsistent system state in the event of process and/or node failures. If
  53. HBase is complaining of an inability to use hsync or hflush it's most
  54. likely not a false positive.
  55. </description>
  56. </property>
  57. <!-- Added by Lei YU for testing -->
  58. <property>
  59. <name>zookeeper.znode.parent</name>
  60. <value>/hbase</value>
  61. </property>
  62. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement