The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDP on Windows – Installation Forum

HDP 2 for Windows – Services fail to start after reboot

  • #47492
    Robert Klein
    Participant

    Hi,
    I hope someone can help. I was able to successfully install HDP for Windows 2.0. After the installation all services started correctly and ran for several days. However after a recent reboot all services failed to start (as shown below) when running the Start_Local_HDP_Services. Any help would be greatly appreciated! Thanks, Rob

    c:\hdp>start_local_hdp_services
    starting datanode
    Start-Service : Service ‘Apache Hadoop datanode (datanode)’ cannot be started due to the following error: Cannot start service datanode on computer ‘.’.
    At C:\hdp\manage_local_hdp_services.ps1:77 char:29
    + $foo = Start-Service <<<< -Name $serviceName.Name -ErrorAction Continue
    + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

    starting derbyserver
    Start-Service : Service ‘Apache Hadoop derbyserver (derbyserver)’ cannot be started due to the following error: Cannot start service derbyserver on computer ‘.’.
    At C:\hdp\manage_local_hdp_services.ps1:77 char:29
    + $foo = Start-Service <<<< -Name $serviceName.Name -ErrorAction Continue
    + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

    starting historyserver
    Start-Service : Service ‘Apache Hadoop historyserver (historyserver)’ cannot be started due to the following error: Cannot start service historyserver on computer ‘.’.
    At C:\hdp\manage_local_hdp_services.ps1:77 char:29
    + $foo = Start-Service <<<< -Name $serviceName.Name -ErrorAction Continue
    + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
    ….
    starting templeton
    Start-Service : Service ‘Apache Hadoop templeton (templeton)’ cannot be started due to the following error: Cannot start service templeton on computer ‘.’.
    At C:\hdp\manage_local_hdp_services.ps1:77 char:29
    + $foo = Start-Service <<<< -Name $serviceName.Name -ErrorAction Continue
    + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

    Sent all start commands.
    total services
    12
    running services
    not yet running services
    12
    Failed_Start datanode derbyserver historyserver hiveserver2 hwi metastore namenode nodemanager oozieservice resourcemanager secondarynamenode templeton

  • Author
    Replies
  • #47612
    Robert Klein
    Participant

    The issue has been corrected. The hadoop user did not have “Log on as a service” rights which prevented the services from restarting.

    #47755
    Seth Lyubich
    Moderator

    Hi Robert,

    Thanks for letting us know that you your issue is resolved.

    Thanks,
    Seth

    #53020
    IngEnsi
    Participant

    Hi Robert ,
    I face the same Problem but not for all the services, how to resolve it ?
    can you post all steps you have folowed to resolve the problem

    Regards
    HerArf

The forum ‘HDP on Windows – Installation’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.