[ 
https://issues.apache.org/jira/browse/KYLIN-4372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17036998#comment-17036998
 ] 

ASF GitHub Bot commented on KYLIN-4372:
---------------------------------------

nichunen commented on pull request #1103: KYLIN-4372 Fix bug of delete file too 
later cause ZK started by HBase…
URL: https://github.com/apache/kylin/pull/1103
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Docker entrypoint delete file too later cause ZK started by HBase crash
> -----------------------------------------------------------------------
>
>                 Key: KYLIN-4372
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4372
>             Project: Kylin
>          Issue Type: Bug
>          Components: Others
>    Affects Versions: v3.0.0-alpha2
>            Reporter: Yue Zhang
>            Assignee: weibin0516
>            Priority: Critical
>
> In docker/entrypoint.sh
>  
> {code:java}
> # start hbase
> $HBASE_HOME/bin/start-hbase.sh
> # start kafka
> rm -rf /tmp/kafka-logs
> rm -rf /data/zookeeper/*
> nohup $KAFKA_HOME/bin/kafka-server-start.sh 
> $KAFKA_HOME/config/server.properties &
> {code}
> rm -rf /data/zookeeper/*  should before starting HBase instead of before 
> starting Kafka.
> It executes after HBase will cause ZK started by HBase crash.
> The crash logs of /home/admin/hbase-1.1.2/logs/hbase--master-9aef5f427eb6.log:
> {code:java}
> 2020-02-10 09:25:56,402 INFO [SyncThread:0] persistence.FileTxnLog: Creating 
> new log file: log.1 2020-02-10 09:25:56,402 ERROR [SyncThread:0] 
> server.SyncRequestProcessor: Severe unrecoverable error, exiting 
> java.io.FileNotFoundException: /data/zookeeper/zookeeper_0/version-2/log.1 
> (No such file or directory) at java.io.FileOutputStream.open0(Native Method) 
> at java.io.FileOutputStream.open(FileOutputStream.java:270) at 
> java.io.FileOutputStream.<init>(FileOutputStream.java:213) at 
> java.io.FileOutputStream.<init>(FileOutputStream.java:162) at 
> org.apache.zookeeper.server.persistence.FileTxnLog.append(FileTxnLog.java:205)
>  at 
> org.apache.zookeeper.server.persistence.FileTxnSnapLog.append(FileTxnSnapLog.java:314)
>  at org.apache.zookeeper.server.ZKDatabase.append(ZKDatabase.java:476) at 
> org.apache.zookeeper.server.SyncRequestProcessor.run(SyncRequestProcessor.java:140)
> {code}
>  I think the shell should be like this
> {code:java}
> # start hbase 
> rm -rf /data/zookeeper/*
> $HBASE_HOME/bin/start-hbase.sh
> # start kafka 
> rm -rf /tmp/kafka-logs  
> nohup $KAFKA_HOME/bin/kafka-server-start.sh 
> $KAFKA_HOME/config/server.properties & {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to