HDFS Home Directory

前端 未结 2 927
别那么骄傲
别那么骄傲 2020-12-10 19:59

I have setup a single node multi-user hadoop cluster. In my cluster, there is an admin user that is responsible for running the cluster (superuser). All other users are all

2条回答
  •  猫巷女王i
    2020-12-10 20:23

    I'm not sure this is something that can be configured - the source for DistributedFileSystem(line 150) has a call for getHomeDirectory that seems to be hard-coded:

    @Override
    public Path getHomeDirectory() {
      return makeQualified(new Path("/user/" + dfs.ugi.getShortUserName()));
    }
    

    You do have two possible choices if you want to be able to change this:

    • Submit a ticket to hadoop asking for a new feature - See this link
    • Amend the source yourself and re-build + re-distribute the hadoop-core jar across your cluster (simple in your single node pseudo cluster)

提交回复
热议问题