PIG and .bashrc file



0
Hi,

I couldn't find the /home/hduser/.bashrc file in the vm. Is it necessary to edit this file on a pre-configured cloudera vm. I can use the grunt shell anyway. But please let me know why I cannot find the directory /home/hduser

Regards
John

3 Answer(s)


0

hi John,

If you have created a user called "hduser" them this user need to have a home directory "/home/hduser" . On some linux systems the system created users will had .bashrc, for the users which the user creates, this file might not be there. You can create a .bashrc file and put the required paths into this file.

once paths are added, execute "source .bashrc" on the shell to access the variables and use on the command line.

Thanks

1

hi John,

If you have created a user called "hduser" them this user need to have a home directory "/home/hduser" . On some linux systems the system created users will had .bashrc, for the users which the user creates, this file might not be there. You can create a .bashrc file and put the required paths into this file.

once paths are added, execute "source .bashrc" on the shell to access the variables and use on the command line.

Thanks

0

Thanks for the response. Does it have to be hduser and hduser folder. As I'm using cloudera user, can it be created in cloudera folder?

Also what's the significance of this .bashrc file and the path. I can use PIG commands without these steps on the VM downloaded. Please let me know if it's really necessary or is there any other location where .bashrc located which I'm not aware of?

Regards
John