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 underscore | |
import org.apache.hadoop.fs.{Path, PathFilter} | |
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat | |
import org.apache.spark.sql.SparkSession | |
class TmpFileFilter extends PathFilter { | |
override def accept(path: Path): Boolean = { | |
println(path) |
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
hdfs dfs -du "$1" | awk '{print $1,$2,$3}' | sort -nr | xargs -n3 sh -c 'printf "%s %s %s\n" $(numfmt --to=iec $0) $(numfmt --to=iec $1) $2' |
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
✔️Tech-Powered Sales by Justin Michael | |
✔️The Incredible History of India's Geography by Sanjiv Sanyal | |
✔️The Art of Saying No by Damon Zahariades | |
✔️No Limits by Mukesh B. | |
✔️Measure What Matters by John Doerr | |
✔️How I Almost Blew It by Sidharth Rao | |
✔️Meetings That Get Results by Brian Tracey | |
✔️Linked Inbound by Sam Rathling | |
✔️The Million Pound Linkedin Message by Daniel Disney | |
✔️The Psychology of Money by Morgan Housel |
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
import java.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class TestCsv { | |
private static final String CSV_FILE_NAME = "hive_out.csv"; |
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
~/work/st/notes/gist.txt |
Primary editor(s) :
- Intellij Idea ,
- VS Code
- VIM
Command line :
- Iterm2 with solazied dark theme
- Shell - fish (give it a try it is better than zsh or bash)
- command prompt starship
- autojump (no need for
cd
after it learns your dirs)
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
https://forums.databricks.com/questions/277/how-do-i-avoid-the-no-space-left-on-device-error.html |
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
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix | |
;; and optionally can refer functions to the current ns. | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; | |
;; * :refer-clojure affects availability of built-in (clojure.core) | |
;; functions. |
NewerOlder