Skip to content

Instantly share code, notes, and snippets.

View iamthechad's full-sized avatar

Chad Johnston iamthechad

View GitHub Profile
Path: simple/test-fs-realpath
Error: EEXIST, file already exists '/home/cjohnston/node/test/fixtures/nested-index/one/symlink1-dir'
$ cd /home/cjohnston/node
$ make clean && rm -rf out
$ ./configure
$ make
$ make test
$ cd /media/psf/Home/Documents/workspaces/node #Yeah, that's where I keep my code.
$ make clean && rm -rf out
$ ./configure
$ make
$ make test
Path: simple/test-cluster-http-pipe
Error: bind EPERM
Path: simple/test-fs-error-messages
assert.js:86
throw new assert.AssertionError({
^
AssertionError: false == true
Command: out/Release/node /opt/node/test/simple/test-fs-error-messages.js
$ cd /opt/node
$ make clean && rm -rf out
$ ./configure
$ make
$ make test
SELECT Publisher, BookAuthor, YearOfPublication, COUNT(BookTitle)
> FROM BookData
> GROUP BY Publisher, BookAuthor, YearOfPublication;
INSERT OVERWRITE TABLE BookData
> SELECT BookData.*
> FROM BookData WHERE YearOfPublication > 0;
SELECT YearOfPublication, COUNT(BookTitle) > FROM BookData GROUP BY YearOfPublication;
CREATE TABLE IF NOT EXISTS BookData
> (ISBN STRING,
> BookTitle STRING,
> BookAuthor STRING,
> YearOfPublication INT,
> Publisher STRING)
> ROW FORMAT DELIMITED
> FIELDS TERMINATED BY '\;'
> STORED AS TEXTFILE; LOAD DATA INPATH '/user/cloudera/input/BX-BooksCorrected.txt'
> OVERWRITE INTO TABLE BookData;
joined = JOIN distinct_flat BY Author, author_result BY Author;
filtered = FOREACH joined GENERATE
>> distinct_flat::Publisher AS Publisher,
>> distinct_flat::Author AS Author,
>> author_result::Books AS Books;