PIG and .bashrc file


3 Answer(s)


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

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

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