Quantcast
Viewing all articles
Browse latest Browse all 3435

Reply To: Can't copy and paste into VI

Are you pasting directly at the virtual machine window? Like the VMWare or Virtual box Window. That might be the issue.

Please connect using ssh, and the cut and past should work.

Try also this: On a terminal shell, execute command vi.

When vi appears, press the letter i in lowecase! You are now in insert mode. write something. Did it work?

Then press ESCAPE. You are now in command mode. write 😡 myfilename.txt

it should save what you’ve written in a new file named myfilename.txt

Otherwise just copy and paste this at the command prompt:

echo ”

batting = LOAD '/user/guest/Batting.csv' USING PigStorage(',');
raw_runs = FILTER batting BY $1>0;
runs = FOREACH raw_runs GENERATE $0 AS playerID, $1 AS year, $8 AS runs;
grp_data = GROUP runs BY (year);
max_runs = FOREACH grp_data GENERATE group as grp, MAX(runs.runs) AS max_runs;
join_max_runs = JOIN max_runs BY ($0, max_runs), runs BY (year, runs);
join_data = FOREACH join_max_runs GENERATE $0 AS year, $2 AS playerID, $1 AS runs;
DUMP join_data;" > 1.pig


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>