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

Security Forum

How to set execute permissions on windows

  • #50736
    Bill Carroll

    Installed HDP 2.0 windows on windows server 2012 successfully and running simple wordcount mapreduce and get an exception from container-launch. Looking at syslog I see I have a FSPermissions check failure on the account, wcarroll, running wordcount. What is the proper configuration to give the user permission on windows? The wcarroll user is a member of HadoopUsers group.

    Application application_1395680080745_0004 failed 2 times due to AM Container for appattempt_1395680080745_0004_000002 exited with exitCode: 1 due to: Exception from container-launch:
    at org.apache.hadoop.util.Shell.runCommand(

    2014-03-28 14:30:51,307 INFO [main] org.apache.hadoop.service.AbstractService: Service JobHistoryEventHandler failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Permission denied: user=wcarroll, access=EXECUTE, inode=”/mapred”:hadoop:hdfs:drwxrwx—
    at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(
    at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(
    at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkTraverse(
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(
    at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(
    at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$
    at org.apache.hadoop.ipc.RPC$
    at org.apache.hadoop.ipc.Server$Handler$
    at org.apache.hadoop.ipc.Server$Handler$
    at Method)
    at org.apache.hadoop.ipc.Server$

    org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Permission denied: user=wcarroll, access=EXECUTE, inode=”/mapred”:hadoop:hdfs:drwxrwx—

  • Author
  • #50772
    Timothee Gautheron

    Hi Bill, i’m just another HDP user, but maybe I can help you with this.

    You said “The wcaroll user is a member of HadoopUsers group” , okay, but by default this group is “hadoop” right ? Browsing you log, i saw that the folder you are trying to use with your “wcaroll” user is under this acl : ”/mapred”:hadoop:hdfs:drwxrwx—
    Meaning “hadoop” is the user, “hdfs” is the group. So of course “wcaroll” cannot access it, and since the default group is not set here you cannot access it through the group either.

    Juste my 2cents.

    Vinay Shukla

    Thanks to Timothee for great debugging. You can add a user to a group on Windows as follows.

    net localgroup group_name UserLoginName /add

    Bill Carroll

    Thanks everyone! I created a local group named hdfs and added the local user hadoop to it and wordcount ran successful. Would be nice if the install created the group and added the user!

The forum ‘Security’ 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.