简体   繁体   English

Amazon EMR Linux实例用户帐户访问问题

[英]Amazon EMR Linux Instance User Account Access issues

I created a user account on Amazon Linux Instance with root user. 我以root用户在Amazon Linux实例上创建了一个用户帐户。 I found that if I create a user account(Example: ec2-user) that account will not have execute and write permissions on Hadoop Files System, Hive, Pig and other tools which are installed on Amazon EMR. 我发现,如果创建一个用户帐户(例如:ec2-user),该帐户将不会对Hadoop File System,Hive,Pig和Amazon EMR上安装的其他工具具有执行和写入权限。 If I have to give them explicit permissions I have to create a group which has permissions equivalent to superuser(root) account and add users to that group. 如果必须给他们明确的权限,则必须创建一个具有与superuser(root)帐户等效的权限的组,并将用户添加到该组中。 Is there any other way I can set up access for those accounts to HDFS, Hive and Pigs etc. 我还有其他方法可以为这些帐户设置对HDFS,Hive和Pigs等的访问权限吗?

Also while logging in as user the Linux command prompt is not prompting to enter any password even though I gave password for the user account while creating it. 同样,以用户身份登录时,即使我在创建用户帐户时输入了密码,Linux命令提示符也不提示输入任何密码。 Is there anything configuration changes I need to make in /etc/ssh/sshd_config file? 我需要在/ etc / ssh / sshd_config文件中进行任何配置更改吗?

Your question is not that clear to me. 您的问题对我来说还不清楚。

But, let me attempt with whatever I suppose I understood. 但是,让我尝试我想像的一切。

Hadoop when security is enabled needs to have security for each user. 启用安全性后的Hadoop需要为每个用户都具有安全性。 It seems your user needs a separate space for writes and executions ie a Home directory. 看来您的用户需要用于写和执行的单独空间,即主目录。

First login as 'hdfs' user in a terminal and then create a home directory for your user in HDFS. 首先在终端中以“ hdfs”用户身份登录,然后在HDFS中为您的用户创建主目录。 Please check if you have a directory called /user/{yourUser}. 请检查您是否有一个名为/ user / {yourUser}的目录。 If, not create that. 如果不创建。 Then, make sure you make {yourUser} the owner of /user/{yourUser}. 然后,确保您使{yourUser}为/ user / {yourUser}的所有者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM