Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CCFA10445 for ; Mon, 1 Dec 2014 21:20:13 +0000 (UTC) Received: (qmail 90174 invoked by uid 500); 1 Dec 2014 21:20:13 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 90106 invoked by uid 500); 1 Dec 2014 21:20:13 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 90059 invoked by uid 99); 1 Dec 2014 21:20:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 21:20:13 +0000 Date: Mon, 1 Dec 2014 21:20:13 +0000 (UTC) From: "Abhishek Girish (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-1797) Drillbit.sh fails to stop Drillbit processes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Abhishek Girish created DRILL-1797: -------------------------------------- Summary: Drillbit.sh fails to stop Drillbit processes Key: DRILL-1797 URL: https://issues.apache.org/jira/browse/DRILL-1797 Project: Apache Drill Issue Type: Bug Components: Tools, Build & Test Reporter: Abhishek Girish Assignee: Jacques Nadeau The drillbit.sh script which on stop does a kill -0 on the drillbit PID fails to stop the process. The processes need to be manually killed with a kill -9 and then restarted. The following messages are seen: _no drillbit to stop because kill -0 of pid failed with status 1_ Drillbit.out indicates an error with permission of the drillbit.pid file and also gives conflicting errors indicating the drillbit process is already shutdown but the address is still in use: /opt/mapr/drill/drill-0.6.0/bin/drillbit.sh: line 188: /opt/mapr/drill/drill-0.6.0/drillbit.pid: Permission denied Exception in thread "main" org.apache.drill.exec.exception.DrillbitStartupException: Failure during initial startup of Drillbit. at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:73) at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:57) at org.apache.drill.exec.server.Drillbit.main(Drillbit.java:80) Caused by: org.apache.drill.exec.exception.DrillbitStartupException: Could not bind Drillbit at org.apache.drill.exec.rpc.BasicServer.bind(BasicServer.java:158) at org.apache.drill.exec.service.ServiceEngine.start(ServiceEngine.java:61) at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:145) at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:70) ... 2 more Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:478) at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1021) at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:455) at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:440) at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:844) at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:197) at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:350) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) at java.lang.Thread.run(Thread.java:745) Exception in thread "ShutdownHook" java.lang.IllegalStateException: Already closed or has not been started at com.google.common.base.Preconditions.checkState(Preconditions.java:149) at org.apache.curator.x.discovery.details.ServiceCacheImpl.close(ServiceCacheImpl.java:91) at org.apache.drill.exec.coord.zk.ZKClusterCoordinator.close(ZKClusterCoordinator.java:159) at com.google.common.io.Closeables.close(Closeables.java:77) at com.google.common.io.Closeables.closeQuietly(Closeables.java:108) at org.apache.drill.exec.server.Drillbit.close(Drillbit.java:172) at org.apache.drill.exec.server.Drillbit$ShutdownThread.run(Drillbit.java:186) -- This message was sent by Atlassian JIRA (v6.3.4#6332)