栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

HBase

HBase

Configuration conf = HbaseConfiguration.create();
conf.set("hbase.rootdir","hdfs://bd:9000/hbase");
conf.set("hbase.zookeeper.property.dataDir","/home/moon/hbase/zookeeper");
conf.set("hbase.zookeeper.quorum","bd");
conf.set("hbase.cluster.distributed","true");
Connection connection = ConnectionFactory.createConnection(conf);
HbaseAdmin admin = (HbaseAdmin)connection.getAdmin();
TableDescriptorBuilder tdb = 
TableDescriptorBuilder.newBuilder(TableName.valueOf("class"));
List listColumns = new ArrayList<>();
ColumnFamilyDescriptor cfd_info =
ColumnFamilyDescriptorBuilder.newBuilder("information".getBytes()).build();
ColumnFamilyDescriptor cfd_res =
ColumnFamilyDescriptorBuilder.newBuilder("results".getBytes()).build();
listColumns.add(cfd_info);
listColumns.add(cfd_res);
tdb.setColumnFamilies(listColumns);
TableDescriptor td= tdb.build();
admin.createTable(td);
admin.close();
connection.close();

There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 19922944 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
#   JVM is running with Unscaled Compressed Oops mode in which the Java heap is
#     placed in the first 4GB address space. The Java Heap base address is the
#     maximum limit for the native heap growth. Please use -XX:HeapbaseMinAddress
#     to set the Java Heap base and to place the Java Heap above 4GB virtual address.
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2994), pid=5009, tid=5016
#
# JRE version: OpenJDK Runtime Environment JBR-11.0.13.7-1751.19-jcef (11.0.13+7) (build 11.0.13+7-b1751.19)
# Java VM: OpenJDK 64-Bit Server VM JBR-11.0.13.7-1751.19-jcef (11.0.13+7-b1751.19, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /opt/idea-IC-213.5744.223/bin/core.5009)
#

---------------  S U M M A R Y ------------

Command Line: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=512m -XX:+IgnoreUnrecognizedVMOptions -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumponOutOfMemoryError -XX:-OmitStackTraceInFastThrow -ea -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Dsun.tools.attach.tmp.only=true -Xmx750m -XX:ErrorFile=/home/yrfmessi/java_error_in_idea_%p.log -XX:HeapDumpPath=/home/yrfmessi/java_error_in_idea_.hprof -Djb.vmOptionsFile=/home/yrfmessi/.config/JetBrains/IdeaIC2021.3/idea64.vmoptions -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.vendor.name=JetBrains -Didea.paths.selector=IdeaIC2021.3 -Didea.platform.prefix=Idea -Didea.jre.check=true -Dsplash=true com.intellij.idea.Main

Host: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2 cores, 1G, Ubuntu 16.04.7 LTS
Time: Mon Dec 13 23:16:07 2021 CST elapsed time: 190.875414 seconds (0d 0h 3m 10s)

---------------  T H R E A D  ---------------

Current thread (0x00007f1780128000):  VMThread "VM Thread" [stack: 0x00007f175c2d6000,0x00007f175c3d6000] [id=5016]

Stack: [0x00007f175c2d6000,0x00007f175c3d6000],  sp=0x00007f175c3d3dc0,  free space=1015k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xe664ca]

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/663856.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号