Tiger VNC server in Linux distributions

Installation:

  • yum install tigervnc-server

Configure for Single/Multiple users:

  • Edit vi /etc/sysconfig/vncservers and add the following
  • VNCSERVERS=”<<display_number>>:<<user_name>>”
  • Login to each user and set VNC password using command : vncpasswd
  • Then from the user login, start the server using command : vncserver :<<display_number>>

List all running VNC servers;

  • vncserver -list

Kill VNC display:

  • vncserver -kill :2

 

HDFS copy/move commands

  • Copying files from HDFS to Local file system:
    • hadoop fs -get <source hdfs location> <destination local location>
  • Copying files from Local file system to HDFS:
    • hadoop fs -put <source local location> <destination hdfs location>
  • Copying from HDFS to S3 and Vice versa:
    • hadoop distcp -Dfs.s3a.awsAccessKeyId=<<access_key>> -Dfs.s3a.server-side-encryption-algorithm=AES256 -Dmapreduce.map.memory.mb=6192  -Dmapred.job.queue.name=<<queue>> -Dmapred.reduce.tasks=20 -overwrite <<hdfs://>> <<s3a://>>
    • (access_key, encryption, memory, queue, tasts, overwrite are optional)
  • Copying inside HDFS locations:
    • hadoop fs -cp <source hdfs loc> <dest hdfs loc>
  • Moving inside HDFS locations:
    • hadoop fs -mv <source hdfs loc> <dest hdfs loc>