Thank you ShaoFeng!
I ask another question, when I run restore metastore command I got this message:

[root@CDHmaster meta_restore]# ../../bin/metastore.sh restore 
/usr/kylin/meta_backups/meta_restore/
KYLIN_HOME is set to ../../bin/../
itStarting restoring /usr/kylin/meta_backups/meta_restore/
KYLIN_HOME is set to /usr/kylin
KYLIN_HOME is set to /usr/kylin
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; 
support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated 
and will likely be removed in a future release
16/11/22 14:14:27 WARN mapreduce.TableMapReduceUtil: The hbase-prefix-tree 
module jar containing PrefixTreeCodec is not present.  Continuing without it.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; 
support was removed in 8.0

I want to change MaxPermSize I need to edit which file? 
When I restore 'dict' folder I got 'Out Of Memory' error, I guess MaxPermSize 
too low.




袁鹏文  Pengwen Yuan
 
From: ShaoFeng Shi
Date: 2016-11-22 14:27
To: user
Subject: Re: restore metastore OutOfMemoryError
Hi Pengwen,

"Directly saving resource /java_pid23454.hprof "

Check whether you have put the hprof file in metadata directory by mistake; it 
shouldn't be a part of kylin metadata.

2016-11-22 14:22 GMT+08:00 [email protected] <[email protected]>:
hi all:
I restore kylin metastore 
"bin/metastore.sh restore /usr/kylin/meta_backups/meta_restore/"
I get this error:
2016-11-22 14:14:40,270 INFO  [main-SendThread(CDHslave2:2181) ClientCnxn:975]: 
Opening socket connection to server CDHslave2/192.168.*.*:2181. Will not 
attempt to authenticate using SASL (unknown error)
2016-11-22 14:14:40,282 INFO  [main-SendThread(CDHslave2:2181) ClientCnxn:852]: 
Socket connection established, initiating session, client: /192.168.*.*:33801, 
server: CDHslave2/192.168.*.*:2181
2016-11-22 14:14:40,292 INFO  [main-SendThread(CDHslave2:2181) 
ClientCnxn:1235]: Session establishment complete on server 
CDHslave2/192.168.*.*:2181, sessionid = 0x2586afc3d593bed, negotiated timeout = 
60000
2016-11-22 14:14:41,565 DEBUG [main HBaseConnection:277]: HTable 
'kylin_metadata' already exists
2016-11-22 14:14:41,566 DEBUG [main ResourceStore:207]: Directly saving 
resource /java_pid23454.hprof (Store kylin_metadata@hbase)
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid53190.hprof ...
Heap dump file created [81869727 bytes in 5.327 secs]
#
# java.lang.OutOfMemoryError: Java heap space
# -XX:OnOutOfMemoryError="kill -9 %p"
#   Executing /bin/sh -c "kill -9 53190"...
../../bin/metastore.sh: 行 109: 53190 已杀死               
${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.common.persistence.ResourceTool 
upload $_file

 Is anyone met this problem ? 



袁鹏文 Pengwen Yuan



-- 
Best regards,

Shaofeng Shi 史少锋

Reply via email to