Skip to content

Instantly share code, notes, and snippets.

View wolny's full-sized avatar

Adrian Wolny wolny

View GitHub Profile
"""List the email addresses subscribed to a mailing list, fetched from web.
Usage: %(PROGRAM)s [options] hostname listname password
Where:
--output file
-o file
Write output to specified file instead of standard out.
--regular
@wolny
wolny / HadoopTest.java
Created January 7, 2016 17:09
Simple code snippet for copying a file from local file system to HDFS
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
public class HadoopTest {
public static void main(String[] args) throws URISyntaxException, IOException, InterruptedException {