Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java -ea -Ddtype=float -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 14.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 14.app/Contents/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.giorgijvaridze.playground; | |
public class Main { | |
public static void main(String[] args) { | |
Person soso = new Person(); | |
Person soso1 = new Person(); | |
Person soso2 = new Person(); | |
Person.printObjCount(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.giorgijvaridze.playground; | |
public class Person { | |
private String first_name = "No name"; | |
private String last_name; | |
private int age; | |
public static int objCount = 0; | |
public static void printObjCount(){ | |
System.out.println(objCount); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl http://translate.ge/q.aspx?w=$1 2>/dev/null|sed -e :a -e 's/<[^>]*>//g;/</N;//ba'&&echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/dir/kadata | |
head -100 allwords-unique-sorted.txt | |
და 8670483 | |
არ 3767689 | |
რომ 2586399 | |
რა 1869882 | |
თუ 1735775 | |
ეს 1428843 | |
უნდა 1240086 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /Hadoop | |
bin/hadoop dfs -getmerge /user/kadata-output-sorted /path/to/dir/kadata/allwords-unique-sorted.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pig | |
grunt> raw = LOAD '/user/kadata-output/part-r-00000' USING PigStorage('\t') AS (word:chararray, cnt:int); | |
grunt> raw_ordered = ORDER raw BY cnt DESC, word; | |
grunt> STORE raw_ordered INTO '/user/kadata-output-sorted' USING PigStorage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/hadoop dfs -getmerge /user/kadata-output /path/to/dir/kadata | |
cd /path/to/dir/kadata | |
ls -sh kadata-output | |
159M kadata-output | |
wc -l kadata-output | |
4839699 kadata-output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/hadoop jar hadoop-0.20.2-examples.jar wordcount /user/kadata /user/kadata-output |
NewerOlder