Slide 19
Slide 19 text
{ } CC-BY-ND 4.0
Native integration - Cascading
Tap
in
=
new
EsTap("radio/artists","?q=me*");
Tap
out
=
new
StdOut(new
TextLine());
new
LocalFlowConnector().
connect(in,
out,
new
Pipe(“pipe")).complete();
JobClient.runJob(conf);
Tap
in
=
Lfs(new
TextDelimited(
new
Fields("id",
"name",
"url",
"picture")),
"artists.dat");
Tap
out
=
new
EsTap("radio/artists",
new
Fields("name",
"url",
"picture"));
new
HadoopFlowConnector().
connect(in,
out,
new
Pipe(“pipe")).complete();