Detailed examples of all the spark sql functions
https://docs.databricks.com/_static/notebooks/apache-spark-2.4-functions.html
https://docs.databricks.com/_static/notebooks/apache-spark-2.4-functions.html

remote enable port 6566 plaintext disableR command to start Rserve
Rserve(args="--RS-conf D:\fakepath\Rserv.cfg")replace absolute path in windows to the corresponding Linux equivalent. Have heard there is a config file in /etc/Rserve.conf( not sure though) if not create a new one.
curl -XPUT localhost:9200/_river/gmailriver/_meta -d
"{"type":"imap",
"mail.store.protocol":"imap",
"mail.imap.host":"imap.googlemail.com",
"mail.imap.port":993,
"mail.imap.ssl.enable":true,
"mail.imap.connectionpoolsize":"3",
"mail.debug":"true",
"mail.imap.timeout":10000,
"user":"xxxx@gmail.com",
"password":"xxxx$",
"schedule":null,
"interval":"60s",
"threads":5,
"folderpattern":"^INBOX$",
"bulk_size":100,
"max_bulk_requests":"2",
"bulk_flush_interval":"5s",
"mail_index_name":"gmailriveridx",
"mail_type_name":"mail",
"with_striptags_from_textcontent":true,
"with_attachments":false,
"with_text_content":true,
"with_flag_sync":true,
"index_settings" : null,
"type_mapping" : null
}"
<dependency> <groupId>org.rosuda.REngine</groupId> <artifactId>Rserve</artifactId> <version>1.8.1</version> </dependency> <dependency> <groupId>org.rosuda.REngine</groupId> <artifactId>REngine</artifactId> <version>2.1.0</version> </dependency>
$ firefox\n /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: undefined symbol: gdk_window_get_visual
$ sudo yum list gdk-pixbuf2
/usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/libgdk-x11-2.0.so.0: undefined symbol: _XGetRequest
$ sudo yum update libX11
as.data.frame(sapply(dataFrameName, function(x) gsub("\"", "", x)))
Ctrl + Shift + X2. Convert all letters to lowercase -
Ctrl + Shift + Y
hadoop jar /home/Jijo/Mahout/mahout-distribution-0.9/mahout-core-0.9-job.jar org.apache.mahout.cf.taste.hadoop.item.RecommenderJob -Dmapred.input.dir=/jijo/mahout/links-simple-sorted.txt -Dmapred.output.dir=/jijo/mahout/output --numRecommendations 5 –b true -s SIMILARITY_TANIMOTOCOEFFICIENT
javap -c classnameNo need to include the extension .class
javap -c classname > classname.java