SlideShare a Scribd company logo
1 of 33
Download to read offline
1
Using	
  Morphlines	
  for	
  on-­‐the-­‐fly	
  ETL	
  
Wolfgang	
  Hoschek	
  (@whoschek)	
  
SF	
  Data	
  Engineering	
  Meetup	
  July	
  2013	
  
Agenda	
  
•  Big	
  Data,	
  ETL	
  and	
  Search	
  –	
  seMng	
  the	
  stage	
  
•  Cloudera	
  Morphlines	
  Architecture	
  
•  Component	
  Deep	
  Dive	
  
•  Cloudera	
  Search	
  Use	
  Cases	
  
•  What’s	
  next?	
  
Feel	
  free	
  to	
  ask	
  quesUons	
  as	
  we	
  go!	
  
Example	
  ETL	
  Use	
  Case:	
  	
  
Distributed	
  Search	
  on	
  Hadoop	
  
Flume	
  
Hue	
  UI	
  
Custom	
  
UI	
  
Custom	
  
App	
  
Solr	
  
Solr	
  
Solr	
  
SolrCloud	
  
query	
  
query	
  
query	
  
Index	
  
(ETL)	
  
Hadoop	
  Cluster	
  
MR	
  
HDFS	
  
Index	
  
(ETL)	
  
HBase	
  
Index	
  
(ETL)	
  
Cloudera	
  Morphlines	
  Architecture	
  
Solr	
  
Solr	
  
Solr	
  
SolrCloud	
  
Logs,	
  tweets,	
  social	
  
media,	
  html,	
  
images,	
  pdf,	
  text….	
  
	
  
Anything	
  you	
  want	
  
to	
  index	
  
Flume,	
  MR	
  Indexer,	
  HBase	
  indexer,	
  etc...	
  
	
  Or	
  your	
  applicaUon!	
  
Morphline	
  Library	
  
Morphlines	
  can	
  be	
  embedded	
  in	
  any	
  applicaUon…	
  
Your	
  App!	
  
Cloudera	
  Morphlines	
  
•  Open	
  Source	
  framework	
  for	
  simple	
  ETL	
  
•  Consume	
  any	
  kind	
  of	
  data	
  from	
  any	
  kind	
  of	
  data	
  source,	
  process	
  and	
  
load	
  into	
  any	
  app	
  or	
  storage	
  system	
  
•  Designed	
  for	
  Near	
  Real	
  Time	
  apps	
  &	
  Batch	
  apps	
  
•  Ships	
  as	
  part	
  Cloudera	
  Developer	
  Kit	
  (CDK)	
  and	
  Cloudera	
  Search	
  
•  It’s	
  a	
  Java	
  library	
  
•  ASL	
  licensed	
  on	
  github	
  hbps://github.com/cloudera/cdk	
  
•  Similar	
  to	
  Unix	
  pipelines,	
  but	
  more	
  convenient	
  &	
  efficient	
  
•  ConfiguraUon	
  over	
  coding	
  (reduce	
  Ume	
  &	
  skills)	
  
•  Supports	
  common	
  file	
  formats	
  
•  Log	
  Files	
  &	
  Text	
  
•  Avro,	
  Sequence	
  file	
  
•  JSON,	
  HTML	
  &	
  XML	
  
•  Etc…	
  (pluggable)	
  
•  Extensible	
  set	
  of	
  transformaUon	
  commands	
  
ExtracUon,	
  TransformaUon	
  and	
  Loading	
  
•  Chain	
  of	
  pipelined	
  
commands	
  
•  Simple	
  and	
  flexible	
  data	
  
mapping	
  &	
  transformaUon	
  	
  
•  Reusable	
  across	
  mulUple	
  
index	
  workloads	
  
•  Over	
  Ume,	
  extend	
  and	
  re-­‐
use	
  across	
  plagorm	
  
workloads	
  
syslog	
   Flume	
  
Agent	
  
Solr	
  sink	
  
Command:	
  readLine	
  
Command:	
  grok	
  
Command:	
  loadSolr	
  
Solr	
  
Event	
  
Record	
  
Record	
  
Record	
  
Document	
  
Morphline	
  Library	
  
Like	
  a	
  Unix	
  Pipeline	
  
•  Like	
  Unix	
  pipelines	
  where	
  the	
  data	
  model	
  is	
  
generalized	
  to	
  work	
  with	
  streams	
  of	
  generic	
  records,	
  
including	
  arbitrary	
  binary	
  payloads	
  
•  Designed	
  to	
  be	
  embedded	
  into	
  Hadoop	
  components	
  
such	
  as	
  Search,	
  Flume,	
  MapReduce,	
  Pig,	
  Hive,	
  Sqoop	
  
Stdlib	
  +	
  plugins	
  
•  Framework	
  ships	
  with	
  a	
  set	
  of	
  frequently	
  used	
  high	
  
level	
  transformaUon	
  and	
  I/O	
  commands	
  that	
  can	
  be	
  
combined	
  in	
  applicaUon	
  specific	
  ways	
  
•  The	
  plugin	
  system	
  allows	
  the	
  adding	
  of	
  new	
  
transformaUons	
  and	
  I/O	
  commands	
  and	
  integrates	
  
exisUng	
  funcUonality	
  and	
  third	
  party	
  systems	
  in	
  a	
  
straighgorward	
  manne	
  
Flexible	
  Data	
  Model	
  
•  A	
  record	
  is	
  a	
  set	
  of	
  named	
  fields	
  where	
  each	
  field	
  has	
  
an	
  ordered	
  list	
  of	
  one	
  or	
  more	
  Java	
  Objects	
  (i.e.	
  
Guava’s	
  ArrayListMulUmap)	
  
•  Field	
  can	
  have	
  mulUple	
  values	
  and	
  any	
  two	
  records	
  
need	
  not	
  use	
  common	
  field	
  names	
  
•  Corresponds	
  exactly	
  to	
  Solr/Lucene	
  data	
  model	
  
•  Pass	
  not	
  only	
  structured	
  data,	
  but	
  also	
  arbitrary	
  
binary	
  data	
  
Passing	
  Binary	
  Data	
  
•  _abachment_body	
  field	
  (opUonal)	
  
•  java.io.InputStream	
  or	
  Java	
  byte[]	
  	
  
•  opUonal	
  fields	
  assist	
  w/	
  detecUng	
  &	
  parsing	
  data	
  type	
  
•  _abachment_mimetype	
  field	
  
•  e.g.	
  "applicaUon/pdf"	
  	
  
•  _abachment_charset	
  field	
  
•  e.g.	
  "UTF-­‐8"	
  
•  _abachment_name	
  field	
  
•  e.g.	
  "cars.pdf”	
  
•  Conceptually	
  similar	
  to	
  email	
  and	
  HTTP	
  headers/body	
  
Processing	
  Model	
  
•  Morphline	
  commands	
  manipulate	
  conUnuous	
  or	
  
arbitrarily	
  large	
  streams	
  of	
  records	
  
•  A	
  command	
  transforms	
  a	
  record	
  into	
  zero	
  or	
  more	
  
records	
  
•  The	
  output	
  records	
  of	
  a	
  command	
  are	
  passed	
  to	
  the	
  
next	
  command	
  in	
  the	
  chain	
  
•  A	
  command	
  can	
  contain	
  nested	
  commands	
  	
  
•  A	
  morphline	
  is	
  a	
  tree	
  of	
  commands,	
  essenUally	
  a	
  
push-­‐based	
  data	
  flow	
  engine	
  
Processing	
  Model	
  Non-­‐Goals	
  
•  Designed	
  to	
  embedded	
  into	
  mulUple	
  host	
  systems,	
  thus…	
  
•  No	
  noUon	
  of	
  persistence	
  or	
  durability	
  or	
  distributed	
  
compuUng	
  or	
  node	
  failover	
  
•  Basically	
  just	
  a	
  chain	
  of	
  in-­‐memory	
  transformaUons	
  in	
  the	
  
current	
  thread	
  
•  No	
  need	
  to	
  manage	
  mulUple	
  nodes	
  or	
  threads	
  -­‐	
  	
  already	
  
covered	
  by	
  host	
  systems	
  such	
  as	
  MapReduce,	
  Flume,	
  
Storm,	
  etc.	
  	
  
•  However,	
  a	
  morphline	
  does	
  support	
  passing	
  noUficaUons	
  
•  E.g.	
  BEGIN_TRANSACTION,	
  COMMIT_TRANSACTION,	
  
ROLLBACK_TRANSACTION,	
  SHUTDOWN	
  
Performance	
  and	
  Scaling	
  
•  The	
  runUme	
  compiles	
  morphline	
  on	
  the	
  fly	
  	
  
•  The	
  runUme	
  processes	
  all	
  commands	
  of	
  a	
  given	
  
morphline	
  in	
  the	
  same	
  thread	
  	
  
•  For	
  scalability,	
  deploy	
  many	
  morphline	
  instances	
  on	
  a	
  
cluster	
  in	
  many	
  Flume	
  agents	
  and	
  MapReduce	
  tasks	
  
Syntax	
  
•  HOCON	
  format	
  (Human-­‐OpUmized	
  Config	
  Object	
  
NotaUon)	
  
•  Basically	
  JSON	
  slightly	
  adjusted	
  for	
  the	
  configuraUon	
  
file	
  use	
  case	
  	
  
•  Came	
  out	
  of	
  typesafe.com	
  
•  Also	
  used	
  by	
  Akka	
  and	
  Play	
  frameworks	
  
Example:	
  Indexing	
  log4j	
  w/	
  stacktraces	
  
juil. 25, 2012 10:49:40 AM hudson.triggers.SafeTimerTask run ok
juil. 25, 2012 10:49:46 AM hudson.triggers.SafeTimerTask run failed
com.amazonaws.AmazonClientException: Unable to calculate a request signature
at com.amazonaws.auth.AbstractAWSSigner.signAndBase64Encode(AbstractAWSSigner.java:71)
at java.util.TimerThread.run(Timer.java:505)
Caused by: com.amazonaws.AmazonClientException: Unable to calculate a request signature
at com.amazonaws.auth.AbstractAWSSigner.sign(AbstractAWSSigner.java:90)
at com.amazonaws.auth.AbstractAWSSigner.signAndBase64Encode(AbstractAWSSigner.java:68)
... 14 more
Caused by: java.lang.IllegalArgumentException: Empty key
at javax.crypto.spec.SecretKeySpec.<init>(SecretKeySpec.java:96)
at com.amazonaws.auth.AbstractAWSSigner.sign(AbstractAWSSigner.java:87)
... 15 more
juil. 25, 2012 10:49:54 AM hudson.slaves.SlaveComputer tryReconnect
Record	
  1	
  
Record	
  2	
  
Record	
  3	
  
Example:	
  Indexing	
  log4j	
  w/	
  stacktraces	
  
morphlines : [
{
id : morphline1
importCommands : ["com.cloudera.**", "org.apache.solr.**"]
commands : [
{
readMultiLine {
regex : "(^.+Exception: .+)|(^s+at .+)|(^s+... d+ more)|(^s*Caused by:.+)"
what : previous
charset : UTF-8
}
}
{ logDebug { format : "output record: {}", args : ["@{}"] } }
{ loadSolr {}
]
}
]
Example:	
  Escape	
  to	
  Java	
  Code	
  
morphlines : [
{
id : morphline1
importCommands : ["com.cloudera.**", "org.apache.solr.**"]
commands : [
{ java
{
code: """
List tags = record.get("tags");
if (!tags.contains("hello")) {
return false;
}
tags.add("world");
return child.process(record);
"""
}
}
]
}
]
Current	
  Command	
  Library	
  
•  Integrate	
  with	
  and	
  load	
  into	
  Apache	
  Solr	
  
•  Flexible	
  log	
  file	
  analysis	
  
•  Single-­‐line	
  record,	
  mulU-­‐line	
  records,	
  CSV	
  files	
  	
  
•  Regex	
  based	
  pabern	
  matching	
  and	
  extracUon	
  	
  
•  IntegraUon	
  with	
  Avro,	
  JSON,	
  XML,	
  HTML	
  	
  
•  IntegraUon	
  with	
  Apache	
  Hadoop	
  Sequence	
  Files	
  
•  IntegraUon	
  with	
  SolrCell	
  and	
  all	
  Apache	
  Tika	
  parsers	
  	
  
•  Auto-­‐detecUon	
  of	
  MIME	
  types	
  from	
  binary	
  data	
  using	
  
Apache	
  Tika	
  
Current	
  Command	
  Library	
  (cont’d)	
  
•  ScripUng	
  support	
  for	
  dynamic	
  java	
  code	
  	
  
•  OperaUons	
  on	
  fields	
  for	
  assignment	
  and	
  comparison	
  
•  OperaUons	
  on	
  fields	
  with	
  list	
  and	
  set	
  semanUcs	
  	
  
•  if-­‐then-­‐else	
  condiUonals	
  	
  
•  A	
  small	
  rules	
  engine	
  (tryRules)	
  
•  String	
  and	
  Umestamp	
  conversions	
  	
  
•  slf4j	
  logging	
  
•  Yammer	
  metrics	
  and	
  counters	
  	
  
•  Decompression	
  and	
  unpacking	
  of	
  arbitrarily	
  nested	
  
container	
  file	
  formats	
  
•  etc	
  
Plugin	
  Commands	
  
•  Easy	
  to	
  add	
  new	
  I/O	
  &	
  transformaUon	
  cmds	
  	
  
•  Integrate	
  exisUng	
  funcUonality	
  and	
  third	
  party	
  
systems	
  
•  Implement	
  Java	
  interface	
  Command	
  or	
  subclass	
  
AbstractCommand
•  Add	
  it	
  to	
  Java	
  classpath	
  
•  No	
  registraUon	
  or	
  other	
  administraUve	
  acUon	
  
required	
  
Morphline	
  Example	
  –	
  syslog	
  with	
  grok	
  
morphlines	
  :	
  [	
  
	
  {	
  
	
  	
  	
  id	
  :	
  morphline1	
  
	
  	
  	
  importCommands	
  :	
  ["com.cloudera.**",	
  "org.apache.solr.**"]	
  
	
  	
  	
  commands	
  :	
  [	
  
	
  	
  	
  	
  	
  {	
  readLine	
  {}	
  }	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  {	
  	
  
	
  	
  	
  	
  	
  	
  	
  grok	
  {	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  dicUonaryFiles	
  :	
  [/tmp/grok-­‐dicUonaries]	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  expressions	
  :	
  {	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  message	
  :	
  """<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_Umestamp}	
  %
{SYSLOGHOST:syslog_hostname}	
  %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?:	
  %
{GREEDYDATA:syslog_message}"""	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  }	
  
	
  	
  	
  	
  	
  	
  	
  }	
  
	
  	
  	
  	
  	
  }	
  
	
  	
  	
  	
  	
  {	
  loadSolr	
  {}	
  }	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  ]	
  
	
  }	
  
]	
  
Example	
  Input	
  
<164>Feb	
  	
  4	
  10:46:14	
  syslog	
  sshd[607]:	
  listening	
  on	
  0.0.0.0	
  port	
  22	
  
Output	
  Record	
  
syslog_pri:164	
  
syslog_Umestamp:Feb	
  	
  4	
  10:46:14	
  
syslog_hostname:syslog	
  
syslog_program:sshd	
  
syslog_pid:607	
  
syslog_message:listening	
  on	
  0.0.0.0	
  port	
  22.	
  
	
  
	
  
PotenUal	
  New	
  Plugin	
  Commands	
  
•  Extract,	
  clean,	
  transform,	
  join,	
  integrate,	
  enrich	
  and	
  
decorate	
  records	
  
•  Examples	
  
•  join	
  records	
  with	
  external	
  data	
  sources	
  such	
  as	
  relaUonal	
  
databases,	
  key-­‐value	
  stores,	
  local	
  files	
  or	
  IP	
  Geo	
  lookup	
  
tables.	
  	
  
•  Perform	
  DNS	
  resoluUon,	
  expand	
  shortened	
  URLs	
  
•  fetch	
  linked	
  metadata	
  from	
  social	
  networks	
  
•  do	
  senUment	
  analysis	
  &	
  annotate	
  record	
  accordingly	
  
•  conUnuously	
  maintain	
  stats	
  over	
  sliding	
  windows	
  
•  compute	
  exact	
  or	
  approx.	
  disUnct	
  values	
  &	
  quanUles	
  
Use	
  Case:	
  Cloudera	
  Search	
  
An	
  Integrated	
  Part	
  of	
  
the	
  Hadoop	
  System	
  
One	
  pool	
  of	
  data	
  
One	
  security	
  framework	
  
One	
  set	
  of	
  system	
  resources	
  
One	
  management	
  interface	
  
What	
  is	
  Cloudera	
  Search?	
  
•  Full-­‐text,	
  interacUve	
  search	
  and	
  faceted	
  navigaUon	
  
•  Batch,	
  near	
  real-­‐Ume,	
  and	
  on-­‐demand	
  indexing	
  
•  Apache	
  Solr	
  integrated	
  with	
  CDH	
  
•  Established,	
  mature	
  search	
  with	
  vibrant	
  community	
  
•  Separate	
  runUme	
  like	
  MapReduce,	
  Impala	
  
•  Incorporated	
  as	
  part	
  of	
  the	
  Hadoop	
  ecosystem	
  
•  Open	
  Source	
  
•  100%	
  Apache,	
  100%	
  Solr	
  
•  Standard	
  Solr	
  APIs	
  
ETL	
  for	
  Distributed	
  Search	
  on	
  Apache	
  Hadoop	
  
Flume	
  
Hue	
  UI	
  
Custom	
  
UI	
  
Custom	
  
App	
  
Solr	
  
Solr	
  
Solr	
  
SolrCloud	
  
query	
  
query	
  
query	
  
Index	
  
(ETL)	
  
Hadoop	
  Cluster	
  
MR	
  
HDFS	
  
Index	
  
(ETL)	
  
HBase	
  
Index	
  
(ETL)	
  
Near	
  Real	
  Time	
  ETL	
  &	
  Indexing	
  with	
  Flume	
  
Log	
  File	
  
Apache	
  Solr	
  and	
  
Apache	
  Flume	
  
•  Data	
  ingest	
  at	
  scale	
  
•  Flexible	
  extracUon	
  and	
  
mapping	
  
•  Indexing	
  at	
  data	
  ingest	
  
•  Packaged	
  as	
  Flume	
  
Morphline	
  Solr	
  Sink	
  
HDFS	
  
Flume	
  
Agent	
  
Indexer	
  w/	
  
Morphline	
  
Other	
  Log	
  File	
  
Flume	
  
Agent	
  
Indexer	
  w/	
  
Morphline	
  
26	
  
agent.sinks.solrSink.type = org.apache.flume.sink.solr.morphline.MorphlineSolrSink
agent.sinks.solrSink.morphlineFile = /etc/flume-ng/conf/morphline.conf
Flume.conf	
  
Cloudera	
  Manager	
  Flume	
  Morphline	
  GUI	
  
27
Scalable	
  Batch	
  ETL	
  &	
  Indexing	
  
Index	
  
shard	
  
Files	
  
Index	
  
shard	
  
Indexer	
  w/	
  
Morphline	
  
Files	
  
Solr	
  
server	
  
Indexer	
  w/	
  
Morphline	
  
Solr	
  
server	
  
28
HDFS	
  
Solr	
  and	
  MapReduce	
  
•  Flexible,	
  scalable	
  batch	
  
indexing	
  
•  Start	
  serving	
  new	
  indices	
  
with	
  no	
  downUme	
  
•  On-­‐demand	
  indexing,	
  cost-­‐
efficient	
  re-­‐indexing	
  
•  Packaged	
  as	
  
MapReduceIndexerTool	
  
hadoop ... MapReduceIndexerTool --morphline-file morphline.conf ...
MapReduceIndexerTool	
  
29
hadoop ... MapReduceIndexerTool --morphline-file morphline.conf ...
S0_0_0
Extractors
(Mappers)
Leaf Shards
(Reducers)
Root Shards
(Mappers)
S0_0_1
S0S0_1_0
S0_1_1
S1_0_0
S1_0_1
S1S1_1_0
S1_1_1
Input
Files
...
...
...
...
•  Morphline	
  runs	
  inside	
  Mapper	
  
Near	
  Real	
  Time	
  indexing	
  of	
  Apache	
  HBase	
  
HDFS	
  
HBase	
  
interacUve	
  load	
  
Lily	
  HBase	
  
Indexer(s)	
  
with	
  
Morphline	
  
Triggers	
  on	
  
updates	
  
Solr	
  server	
  
Solr	
  server	
  
Solr	
  server	
  
Solr	
  server	
  
Solr	
  server	
  
Search	
  
+	
   =	
  
Large	
  scale	
  tabular	
  data	
  
immediate	
  access	
  &	
  updates	
  
fast	
  &	
  flexible	
  informaDon	
  
discovery	
  
BIG	
  DATA	
  DATAMANAGEMENT	
  
Batch	
  &	
  Near	
  Real	
  Time	
  ETL	
  
Tweets
Flume Solr
Hue UI
HDFS
MapReduceIndexerTool, Impala, HBase, Mahout, EDW, MR, etc
Lily HBase Indexer
HdfsSink
Query
MapReduce
IndexerTool
Log Formats
Social Media
HTML
Images
PDF
Custom UI
Query
Custom App
...
Morphline
Morphline
MorphlineSink
Morphline
HBase
OLTP
What’s	
  next	
  
•  More	
  work	
  on	
  Apache	
  HBase	
  IntegraUon	
  
•  IntegraUon	
  into	
  Apache	
  Crunch	
  
•  Stream	
  AnalyUcs	
  
Conclusion	
  
•  Cloudera	
  Development	
  Kit	
  w/	
  Morphlines	
  	
  
•  Open	
  Source	
  -­‐	
  ASL	
  License	
  
•  Version	
  0.4.1	
  shipping	
  
•  Extensive	
  documentaUon	
  
•  Send	
  your	
  quesUons	
  and	
  feedback	
  to	
  cdk-­‐dev	
  mailing	
  list	
  
•  Also	
  ships	
  integrated	
  with	
  Cloudera	
  Search	
  
•  Free	
  QuickStart	
  VM	
  also	
  available!	
  

More Related Content

What's hot

Introduction to elasticsearch
Introduction to elasticsearchIntroduction to elasticsearch
Introduction to elasticsearchhypto
 
Funnel Analysis with Apache Spark and Druid
Funnel Analysis with Apache Spark and DruidFunnel Analysis with Apache Spark and Druid
Funnel Analysis with Apache Spark and DruidDatabricks
 
[211] HBase 기반 검색 데이터 저장소 (공개용)
[211] HBase 기반 검색 데이터 저장소 (공개용)[211] HBase 기반 검색 데이터 저장소 (공개용)
[211] HBase 기반 검색 데이터 저장소 (공개용)NAVER D2
 
Sqoop on Spark for Data Ingestion
Sqoop on Spark for Data IngestionSqoop on Spark for Data Ingestion
Sqoop on Spark for Data IngestionDataWorks Summit
 
Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101Mark Kromer
 
Application Timeline Server - Past, Present and Future
Application Timeline Server - Past, Present and FutureApplication Timeline Server - Past, Present and Future
Application Timeline Server - Past, Present and FutureVARUN SAXENA
 
Introduction to Kibana
Introduction to KibanaIntroduction to Kibana
Introduction to KibanaVineet .
 
Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...
Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...
Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...StreamNative
 
(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices
(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices
(BDT401) Amazon Redshift Deep Dive: Tuning and Best PracticesAmazon Web Services
 
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Databricks
 
Hadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema DesignHadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema DesignCloudera, Inc.
 
Common issues with Apache Kafka® Producer
Common issues with Apache Kafka® ProducerCommon issues with Apache Kafka® Producer
Common issues with Apache Kafka® Producerconfluent
 
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...Michael Stack
 
Centralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackCentralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackRohit Sharma
 
Elastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & KibanaElastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & KibanaSpringPeople
 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesYoshinori Matsunobu
 
Performance Optimizations in Apache Impala
Performance Optimizations in Apache ImpalaPerformance Optimizations in Apache Impala
Performance Optimizations in Apache ImpalaCloudera, Inc.
 

What's hot (20)

Introduction to elasticsearch
Introduction to elasticsearchIntroduction to elasticsearch
Introduction to elasticsearch
 
Funnel Analysis with Apache Spark and Druid
Funnel Analysis with Apache Spark and DruidFunnel Analysis with Apache Spark and Druid
Funnel Analysis with Apache Spark and Druid
 
[211] HBase 기반 검색 데이터 저장소 (공개용)
[211] HBase 기반 검색 데이터 저장소 (공개용)[211] HBase 기반 검색 데이터 저장소 (공개용)
[211] HBase 기반 검색 데이터 저장소 (공개용)
 
Sqoop on Spark for Data Ingestion
Sqoop on Spark for Data IngestionSqoop on Spark for Data Ingestion
Sqoop on Spark for Data Ingestion
 
Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101Azure Data Factory Data Flow Performance Tuning 101
Azure Data Factory Data Flow Performance Tuning 101
 
Application Timeline Server - Past, Present and Future
Application Timeline Server - Past, Present and FutureApplication Timeline Server - Past, Present and Future
Application Timeline Server - Past, Present and Future
 
Introduction to Kibana
Introduction to KibanaIntroduction to Kibana
Introduction to Kibana
 
Hive: Loading Data
Hive: Loading DataHive: Loading Data
Hive: Loading Data
 
Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...
Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...
Pulsar in the Lakehouse: Apache Pulsar™ with Apache Spark™ and Delta Lake - P...
 
(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices
(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices
(BDT401) Amazon Redshift Deep Dive: Tuning and Best Practices
 
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
 
Kibana overview
Kibana overviewKibana overview
Kibana overview
 
Hadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema DesignHadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema Design
 
Common issues with Apache Kafka® Producer
Common issues with Apache Kafka® ProducerCommon issues with Apache Kafka® Producer
Common issues with Apache Kafka® Producer
 
ELK Stack
ELK StackELK Stack
ELK Stack
 
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
 
Centralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackCentralized Logging System Using ELK Stack
Centralized Logging System Using ELK Stack
 
Elastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & KibanaElastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & Kibana
 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability Practices
 
Performance Optimizations in Apache Impala
Performance Optimizations in Apache ImpalaPerformance Optimizations in Apache Impala
Performance Optimizations in Apache Impala
 

Similar to Using Morphlines for On-the-Fly ETL

Large Scale ETL for Hadoop and Cloudera Search using Morphlines
Large Scale ETL for Hadoop and Cloudera Search using MorphlinesLarge Scale ETL for Hadoop and Cloudera Search using Morphlines
Large Scale ETL for Hadoop and Cloudera Search using Morphlineswhoschek
 
Search On Hadoop Frontier Meetup
Search On Hadoop Frontier MeetupSearch On Hadoop Frontier Meetup
Search On Hadoop Frontier Meetupgregchanan
 
Ingesting hdfs intosolrusingsparktrimmed
Ingesting hdfs intosolrusingsparktrimmedIngesting hdfs intosolrusingsparktrimmed
Ingesting hdfs intosolrusingsparktrimmedwhoschek
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to SolrErik Hatcher
 
Apache Solr - Enterprise search platform
Apache Solr - Enterprise search platformApache Solr - Enterprise search platform
Apache Solr - Enterprise search platformTommaso Teofili
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to SolrErik Hatcher
 
Solr + Hadoop = Big Data Search
Solr + Hadoop = Big Data SearchSolr + Hadoop = Big Data Search
Solr + Hadoop = Big Data SearchMark Miller
 
Vorontsov, golovko ssrf attacks and sockets. smorgasbord of vulnerabilities
Vorontsov, golovko   ssrf attacks and sockets. smorgasbord of vulnerabilitiesVorontsov, golovko   ssrf attacks and sockets. smorgasbord of vulnerabilities
Vorontsov, golovko ssrf attacks and sockets. smorgasbord of vulnerabilitiesDefconRussia
 
Apache Big Data EU 2016: Building Streaming Applications with Apache Apex
Apache Big Data EU 2016: Building Streaming Applications with Apache ApexApache Big Data EU 2016: Building Streaming Applications with Apache Apex
Apache Big Data EU 2016: Building Streaming Applications with Apache ApexApache Apex
 
Introduction to Impala
Introduction to ImpalaIntroduction to Impala
Introduction to Impalamarkgrover
 
Solr Recipes Workshop
Solr Recipes WorkshopSolr Recipes Workshop
Solr Recipes WorkshopErik Hatcher
 
If You Have The Content, Then Apache Has The Technology!
If You Have The Content, Then Apache Has The Technology!If You Have The Content, Then Apache Has The Technology!
If You Have The Content, Then Apache Has The Technology!gagravarr
 
Solr + Hadoop: Interactive Search for Hadoop
Solr + Hadoop: Interactive Search for HadoopSolr + Hadoop: Interactive Search for Hadoop
Solr + Hadoop: Interactive Search for Hadoopgregchanan
 
Impala Architecture presentation
Impala Architecture presentationImpala Architecture presentation
Impala Architecture presentationhadooparchbook
 

Similar to Using Morphlines for On-the-Fly ETL (20)

Large Scale ETL for Hadoop and Cloudera Search using Morphlines
Large Scale ETL for Hadoop and Cloudera Search using MorphlinesLarge Scale ETL for Hadoop and Cloudera Search using Morphlines
Large Scale ETL for Hadoop and Cloudera Search using Morphlines
 
Solr Recipes
Solr RecipesSolr Recipes
Solr Recipes
 
Search On Hadoop Frontier Meetup
Search On Hadoop Frontier MeetupSearch On Hadoop Frontier Meetup
Search On Hadoop Frontier Meetup
 
Ingesting hdfs intosolrusingsparktrimmed
Ingesting hdfs intosolrusingsparktrimmedIngesting hdfs intosolrusingsparktrimmed
Ingesting hdfs intosolrusingsparktrimmed
 
SolrCloud on Hadoop
SolrCloud on HadoopSolrCloud on Hadoop
SolrCloud on Hadoop
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to Solr
 
Apache Solr - Enterprise search platform
Apache Solr - Enterprise search platformApache Solr - Enterprise search platform
Apache Solr - Enterprise search platform
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to Solr
 
Solr + Hadoop = Big Data Search
Solr + Hadoop = Big Data SearchSolr + Hadoop = Big Data Search
Solr + Hadoop = Big Data Search
 
Vorontsov, golovko ssrf attacks and sockets. smorgasbord of vulnerabilities
Vorontsov, golovko   ssrf attacks and sockets. smorgasbord of vulnerabilitiesVorontsov, golovko   ssrf attacks and sockets. smorgasbord of vulnerabilities
Vorontsov, golovko ssrf attacks and sockets. smorgasbord of vulnerabilities
 
Apache Big Data EU 2016: Building Streaming Applications with Apache Apex
Apache Big Data EU 2016: Building Streaming Applications with Apache ApexApache Big Data EU 2016: Building Streaming Applications with Apache Apex
Apache Big Data EU 2016: Building Streaming Applications with Apache Apex
 
Neptune @ SoCal
Neptune @ SoCalNeptune @ SoCal
Neptune @ SoCal
 
Introduction to Impala
Introduction to ImpalaIntroduction to Impala
Introduction to Impala
 
Solr Recipes Workshop
Solr Recipes WorkshopSolr Recipes Workshop
Solr Recipes Workshop
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
Follow the White Rabbit - Message Queues with PHP
Follow the White Rabbit - Message Queues with PHPFollow the White Rabbit - Message Queues with PHP
Follow the White Rabbit - Message Queues with PHP
 
If You Have The Content, Then Apache Has The Technology!
If You Have The Content, Then Apache Has The Technology!If You Have The Content, Then Apache Has The Technology!
If You Have The Content, Then Apache Has The Technology!
 
Solr + Hadoop: Interactive Search for Hadoop
Solr + Hadoop: Interactive Search for HadoopSolr + Hadoop: Interactive Search for Hadoop
Solr + Hadoop: Interactive Search for Hadoop
 
Impala Architecture presentation
Impala Architecture presentationImpala Architecture presentation
Impala Architecture presentation
 
Search On Hadoop
Search On HadoopSearch On Hadoop
Search On Hadoop
 

More from Cloudera, Inc.

Partner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptxPartner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptxCloudera, Inc.
 
Cloudera Data Impact Awards 2021 - Finalists
Cloudera Data Impact Awards 2021 - Finalists Cloudera Data Impact Awards 2021 - Finalists
Cloudera Data Impact Awards 2021 - Finalists Cloudera, Inc.
 
2020 Cloudera Data Impact Awards Finalists
2020 Cloudera Data Impact Awards Finalists2020 Cloudera Data Impact Awards Finalists
2020 Cloudera Data Impact Awards FinalistsCloudera, Inc.
 
Edc event vienna presentation 1 oct 2019
Edc event vienna presentation 1 oct 2019Edc event vienna presentation 1 oct 2019
Edc event vienna presentation 1 oct 2019Cloudera, Inc.
 
Machine Learning with Limited Labeled Data 4/3/19
Machine Learning with Limited Labeled Data 4/3/19Machine Learning with Limited Labeled Data 4/3/19
Machine Learning with Limited Labeled Data 4/3/19Cloudera, Inc.
 
Data Driven With the Cloudera Modern Data Warehouse 3.19.19
Data Driven With the Cloudera Modern Data Warehouse 3.19.19Data Driven With the Cloudera Modern Data Warehouse 3.19.19
Data Driven With the Cloudera Modern Data Warehouse 3.19.19Cloudera, Inc.
 
Introducing Cloudera DataFlow (CDF) 2.13.19
Introducing Cloudera DataFlow (CDF) 2.13.19Introducing Cloudera DataFlow (CDF) 2.13.19
Introducing Cloudera DataFlow (CDF) 2.13.19Cloudera, Inc.
 
Introducing Cloudera Data Science Workbench for HDP 2.12.19
Introducing Cloudera Data Science Workbench for HDP 2.12.19Introducing Cloudera Data Science Workbench for HDP 2.12.19
Introducing Cloudera Data Science Workbench for HDP 2.12.19Cloudera, Inc.
 
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19Cloudera, Inc.
 
Leveraging the cloud for analytics and machine learning 1.29.19
Leveraging the cloud for analytics and machine learning 1.29.19Leveraging the cloud for analytics and machine learning 1.29.19
Leveraging the cloud for analytics and machine learning 1.29.19Cloudera, Inc.
 
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19Cloudera, Inc.
 
Leveraging the Cloud for Big Data Analytics 12.11.18
Leveraging the Cloud for Big Data Analytics 12.11.18Leveraging the Cloud for Big Data Analytics 12.11.18
Leveraging the Cloud for Big Data Analytics 12.11.18Cloudera, Inc.
 
Modern Data Warehouse Fundamentals Part 3
Modern Data Warehouse Fundamentals Part 3Modern Data Warehouse Fundamentals Part 3
Modern Data Warehouse Fundamentals Part 3Cloudera, Inc.
 
Modern Data Warehouse Fundamentals Part 2
Modern Data Warehouse Fundamentals Part 2Modern Data Warehouse Fundamentals Part 2
Modern Data Warehouse Fundamentals Part 2Cloudera, Inc.
 
Modern Data Warehouse Fundamentals Part 1
Modern Data Warehouse Fundamentals Part 1Modern Data Warehouse Fundamentals Part 1
Modern Data Warehouse Fundamentals Part 1Cloudera, Inc.
 
Extending Cloudera SDX beyond the Platform
Extending Cloudera SDX beyond the PlatformExtending Cloudera SDX beyond the Platform
Extending Cloudera SDX beyond the PlatformCloudera, Inc.
 
Federated Learning: ML with Privacy on the Edge 11.15.18
Federated Learning: ML with Privacy on the Edge 11.15.18Federated Learning: ML with Privacy on the Edge 11.15.18
Federated Learning: ML with Privacy on the Edge 11.15.18Cloudera, Inc.
 
Analyst Webinar: Doing a 180 on Customer 360
Analyst Webinar: Doing a 180 on Customer 360Analyst Webinar: Doing a 180 on Customer 360
Analyst Webinar: Doing a 180 on Customer 360Cloudera, Inc.
 
Build a modern platform for anti-money laundering 9.19.18
Build a modern platform for anti-money laundering 9.19.18Build a modern platform for anti-money laundering 9.19.18
Build a modern platform for anti-money laundering 9.19.18Cloudera, Inc.
 
Introducing the data science sandbox as a service 8.30.18
Introducing the data science sandbox as a service 8.30.18Introducing the data science sandbox as a service 8.30.18
Introducing the data science sandbox as a service 8.30.18Cloudera, Inc.
 

More from Cloudera, Inc. (20)

Partner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptxPartner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptx
 
Cloudera Data Impact Awards 2021 - Finalists
Cloudera Data Impact Awards 2021 - Finalists Cloudera Data Impact Awards 2021 - Finalists
Cloudera Data Impact Awards 2021 - Finalists
 
2020 Cloudera Data Impact Awards Finalists
2020 Cloudera Data Impact Awards Finalists2020 Cloudera Data Impact Awards Finalists
2020 Cloudera Data Impact Awards Finalists
 
Edc event vienna presentation 1 oct 2019
Edc event vienna presentation 1 oct 2019Edc event vienna presentation 1 oct 2019
Edc event vienna presentation 1 oct 2019
 
Machine Learning with Limited Labeled Data 4/3/19
Machine Learning with Limited Labeled Data 4/3/19Machine Learning with Limited Labeled Data 4/3/19
Machine Learning with Limited Labeled Data 4/3/19
 
Data Driven With the Cloudera Modern Data Warehouse 3.19.19
Data Driven With the Cloudera Modern Data Warehouse 3.19.19Data Driven With the Cloudera Modern Data Warehouse 3.19.19
Data Driven With the Cloudera Modern Data Warehouse 3.19.19
 
Introducing Cloudera DataFlow (CDF) 2.13.19
Introducing Cloudera DataFlow (CDF) 2.13.19Introducing Cloudera DataFlow (CDF) 2.13.19
Introducing Cloudera DataFlow (CDF) 2.13.19
 
Introducing Cloudera Data Science Workbench for HDP 2.12.19
Introducing Cloudera Data Science Workbench for HDP 2.12.19Introducing Cloudera Data Science Workbench for HDP 2.12.19
Introducing Cloudera Data Science Workbench for HDP 2.12.19
 
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
 
Leveraging the cloud for analytics and machine learning 1.29.19
Leveraging the cloud for analytics and machine learning 1.29.19Leveraging the cloud for analytics and machine learning 1.29.19
Leveraging the cloud for analytics and machine learning 1.29.19
 
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
 
Leveraging the Cloud for Big Data Analytics 12.11.18
Leveraging the Cloud for Big Data Analytics 12.11.18Leveraging the Cloud for Big Data Analytics 12.11.18
Leveraging the Cloud for Big Data Analytics 12.11.18
 
Modern Data Warehouse Fundamentals Part 3
Modern Data Warehouse Fundamentals Part 3Modern Data Warehouse Fundamentals Part 3
Modern Data Warehouse Fundamentals Part 3
 
Modern Data Warehouse Fundamentals Part 2
Modern Data Warehouse Fundamentals Part 2Modern Data Warehouse Fundamentals Part 2
Modern Data Warehouse Fundamentals Part 2
 
Modern Data Warehouse Fundamentals Part 1
Modern Data Warehouse Fundamentals Part 1Modern Data Warehouse Fundamentals Part 1
Modern Data Warehouse Fundamentals Part 1
 
Extending Cloudera SDX beyond the Platform
Extending Cloudera SDX beyond the PlatformExtending Cloudera SDX beyond the Platform
Extending Cloudera SDX beyond the Platform
 
Federated Learning: ML with Privacy on the Edge 11.15.18
Federated Learning: ML with Privacy on the Edge 11.15.18Federated Learning: ML with Privacy on the Edge 11.15.18
Federated Learning: ML with Privacy on the Edge 11.15.18
 
Analyst Webinar: Doing a 180 on Customer 360
Analyst Webinar: Doing a 180 on Customer 360Analyst Webinar: Doing a 180 on Customer 360
Analyst Webinar: Doing a 180 on Customer 360
 
Build a modern platform for anti-money laundering 9.19.18
Build a modern platform for anti-money laundering 9.19.18Build a modern platform for anti-money laundering 9.19.18
Build a modern platform for anti-money laundering 9.19.18
 
Introducing the data science sandbox as a service 8.30.18
Introducing the data science sandbox as a service 8.30.18Introducing the data science sandbox as a service 8.30.18
Introducing the data science sandbox as a service 8.30.18
 

Recently uploaded

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 

Recently uploaded (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Using Morphlines for On-the-Fly ETL

  • 1. 1 Using  Morphlines  for  on-­‐the-­‐fly  ETL   Wolfgang  Hoschek  (@whoschek)   SF  Data  Engineering  Meetup  July  2013  
  • 2. Agenda   •  Big  Data,  ETL  and  Search  –  seMng  the  stage   •  Cloudera  Morphlines  Architecture   •  Component  Deep  Dive   •  Cloudera  Search  Use  Cases   •  What’s  next?   Feel  free  to  ask  quesUons  as  we  go!  
  • 3. Example  ETL  Use  Case:     Distributed  Search  on  Hadoop   Flume   Hue  UI   Custom   UI   Custom   App   Solr   Solr   Solr   SolrCloud   query   query   query   Index   (ETL)   Hadoop  Cluster   MR   HDFS   Index   (ETL)   HBase   Index   (ETL)  
  • 4. Cloudera  Morphlines  Architecture   Solr   Solr   Solr   SolrCloud   Logs,  tweets,  social   media,  html,   images,  pdf,  text….     Anything  you  want   to  index   Flume,  MR  Indexer,  HBase  indexer,  etc...    Or  your  applicaUon!   Morphline  Library   Morphlines  can  be  embedded  in  any  applicaUon…   Your  App!  
  • 5. Cloudera  Morphlines   •  Open  Source  framework  for  simple  ETL   •  Consume  any  kind  of  data  from  any  kind  of  data  source,  process  and   load  into  any  app  or  storage  system   •  Designed  for  Near  Real  Time  apps  &  Batch  apps   •  Ships  as  part  Cloudera  Developer  Kit  (CDK)  and  Cloudera  Search   •  It’s  a  Java  library   •  ASL  licensed  on  github  hbps://github.com/cloudera/cdk   •  Similar  to  Unix  pipelines,  but  more  convenient  &  efficient   •  ConfiguraUon  over  coding  (reduce  Ume  &  skills)   •  Supports  common  file  formats   •  Log  Files  &  Text   •  Avro,  Sequence  file   •  JSON,  HTML  &  XML   •  Etc…  (pluggable)   •  Extensible  set  of  transformaUon  commands  
  • 6. ExtracUon,  TransformaUon  and  Loading   •  Chain  of  pipelined   commands   •  Simple  and  flexible  data   mapping  &  transformaUon     •  Reusable  across  mulUple   index  workloads   •  Over  Ume,  extend  and  re-­‐ use  across  plagorm   workloads   syslog   Flume   Agent   Solr  sink   Command:  readLine   Command:  grok   Command:  loadSolr   Solr   Event   Record   Record   Record   Document   Morphline  Library  
  • 7. Like  a  Unix  Pipeline   •  Like  Unix  pipelines  where  the  data  model  is   generalized  to  work  with  streams  of  generic  records,   including  arbitrary  binary  payloads   •  Designed  to  be  embedded  into  Hadoop  components   such  as  Search,  Flume,  MapReduce,  Pig,  Hive,  Sqoop  
  • 8. Stdlib  +  plugins   •  Framework  ships  with  a  set  of  frequently  used  high   level  transformaUon  and  I/O  commands  that  can  be   combined  in  applicaUon  specific  ways   •  The  plugin  system  allows  the  adding  of  new   transformaUons  and  I/O  commands  and  integrates   exisUng  funcUonality  and  third  party  systems  in  a   straighgorward  manne  
  • 9. Flexible  Data  Model   •  A  record  is  a  set  of  named  fields  where  each  field  has   an  ordered  list  of  one  or  more  Java  Objects  (i.e.   Guava’s  ArrayListMulUmap)   •  Field  can  have  mulUple  values  and  any  two  records   need  not  use  common  field  names   •  Corresponds  exactly  to  Solr/Lucene  data  model   •  Pass  not  only  structured  data,  but  also  arbitrary   binary  data  
  • 10. Passing  Binary  Data   •  _abachment_body  field  (opUonal)   •  java.io.InputStream  or  Java  byte[]     •  opUonal  fields  assist  w/  detecUng  &  parsing  data  type   •  _abachment_mimetype  field   •  e.g.  "applicaUon/pdf"     •  _abachment_charset  field   •  e.g.  "UTF-­‐8"   •  _abachment_name  field   •  e.g.  "cars.pdf”   •  Conceptually  similar  to  email  and  HTTP  headers/body  
  • 11. Processing  Model   •  Morphline  commands  manipulate  conUnuous  or   arbitrarily  large  streams  of  records   •  A  command  transforms  a  record  into  zero  or  more   records   •  The  output  records  of  a  command  are  passed  to  the   next  command  in  the  chain   •  A  command  can  contain  nested  commands     •  A  morphline  is  a  tree  of  commands,  essenUally  a   push-­‐based  data  flow  engine  
  • 12. Processing  Model  Non-­‐Goals   •  Designed  to  embedded  into  mulUple  host  systems,  thus…   •  No  noUon  of  persistence  or  durability  or  distributed   compuUng  or  node  failover   •  Basically  just  a  chain  of  in-­‐memory  transformaUons  in  the   current  thread   •  No  need  to  manage  mulUple  nodes  or  threads  -­‐    already   covered  by  host  systems  such  as  MapReduce,  Flume,   Storm,  etc.     •  However,  a  morphline  does  support  passing  noUficaUons   •  E.g.  BEGIN_TRANSACTION,  COMMIT_TRANSACTION,   ROLLBACK_TRANSACTION,  SHUTDOWN  
  • 13. Performance  and  Scaling   •  The  runUme  compiles  morphline  on  the  fly     •  The  runUme  processes  all  commands  of  a  given   morphline  in  the  same  thread     •  For  scalability,  deploy  many  morphline  instances  on  a   cluster  in  many  Flume  agents  and  MapReduce  tasks  
  • 14. Syntax   •  HOCON  format  (Human-­‐OpUmized  Config  Object   NotaUon)   •  Basically  JSON  slightly  adjusted  for  the  configuraUon   file  use  case     •  Came  out  of  typesafe.com   •  Also  used  by  Akka  and  Play  frameworks  
  • 15. Example:  Indexing  log4j  w/  stacktraces   juil. 25, 2012 10:49:40 AM hudson.triggers.SafeTimerTask run ok juil. 25, 2012 10:49:46 AM hudson.triggers.SafeTimerTask run failed com.amazonaws.AmazonClientException: Unable to calculate a request signature at com.amazonaws.auth.AbstractAWSSigner.signAndBase64Encode(AbstractAWSSigner.java:71) at java.util.TimerThread.run(Timer.java:505) Caused by: com.amazonaws.AmazonClientException: Unable to calculate a request signature at com.amazonaws.auth.AbstractAWSSigner.sign(AbstractAWSSigner.java:90) at com.amazonaws.auth.AbstractAWSSigner.signAndBase64Encode(AbstractAWSSigner.java:68) ... 14 more Caused by: java.lang.IllegalArgumentException: Empty key at javax.crypto.spec.SecretKeySpec.<init>(SecretKeySpec.java:96) at com.amazonaws.auth.AbstractAWSSigner.sign(AbstractAWSSigner.java:87) ... 15 more juil. 25, 2012 10:49:54 AM hudson.slaves.SlaveComputer tryReconnect Record  1   Record  2   Record  3  
  • 16. Example:  Indexing  log4j  w/  stacktraces   morphlines : [ { id : morphline1 importCommands : ["com.cloudera.**", "org.apache.solr.**"] commands : [ { readMultiLine { regex : "(^.+Exception: .+)|(^s+at .+)|(^s+... d+ more)|(^s*Caused by:.+)" what : previous charset : UTF-8 } } { logDebug { format : "output record: {}", args : ["@{}"] } } { loadSolr {} ] } ]
  • 17. Example:  Escape  to  Java  Code   morphlines : [ { id : morphline1 importCommands : ["com.cloudera.**", "org.apache.solr.**"] commands : [ { java { code: """ List tags = record.get("tags"); if (!tags.contains("hello")) { return false; } tags.add("world"); return child.process(record); """ } } ] } ]
  • 18. Current  Command  Library   •  Integrate  with  and  load  into  Apache  Solr   •  Flexible  log  file  analysis   •  Single-­‐line  record,  mulU-­‐line  records,  CSV  files     •  Regex  based  pabern  matching  and  extracUon     •  IntegraUon  with  Avro,  JSON,  XML,  HTML     •  IntegraUon  with  Apache  Hadoop  Sequence  Files   •  IntegraUon  with  SolrCell  and  all  Apache  Tika  parsers     •  Auto-­‐detecUon  of  MIME  types  from  binary  data  using   Apache  Tika  
  • 19. Current  Command  Library  (cont’d)   •  ScripUng  support  for  dynamic  java  code     •  OperaUons  on  fields  for  assignment  and  comparison   •  OperaUons  on  fields  with  list  and  set  semanUcs     •  if-­‐then-­‐else  condiUonals     •  A  small  rules  engine  (tryRules)   •  String  and  Umestamp  conversions     •  slf4j  logging   •  Yammer  metrics  and  counters     •  Decompression  and  unpacking  of  arbitrarily  nested   container  file  formats   •  etc  
  • 20. Plugin  Commands   •  Easy  to  add  new  I/O  &  transformaUon  cmds     •  Integrate  exisUng  funcUonality  and  third  party   systems   •  Implement  Java  interface  Command  or  subclass   AbstractCommand •  Add  it  to  Java  classpath   •  No  registraUon  or  other  administraUve  acUon   required  
  • 21. Morphline  Example  –  syslog  with  grok   morphlines  :  [    {        id  :  morphline1        importCommands  :  ["com.cloudera.**",  "org.apache.solr.**"]        commands  :  [            {  readLine  {}  }                                                    {                  grok  {                      dicUonaryFiles  :  [/tmp/grok-­‐dicUonaries]                                                                                  expressions  :  {                          message  :  """<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_Umestamp}  % {SYSLOGHOST:syslog_hostname}  %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?:  % {GREEDYDATA:syslog_message}"""                    }                }            }            {  loadSolr  {}  }                    ]    }   ]   Example  Input   <164>Feb    4  10:46:14  syslog  sshd[607]:  listening  on  0.0.0.0  port  22   Output  Record   syslog_pri:164   syslog_Umestamp:Feb    4  10:46:14   syslog_hostname:syslog   syslog_program:sshd   syslog_pid:607   syslog_message:listening  on  0.0.0.0  port  22.      
  • 22. PotenUal  New  Plugin  Commands   •  Extract,  clean,  transform,  join,  integrate,  enrich  and   decorate  records   •  Examples   •  join  records  with  external  data  sources  such  as  relaUonal   databases,  key-­‐value  stores,  local  files  or  IP  Geo  lookup   tables.     •  Perform  DNS  resoluUon,  expand  shortened  URLs   •  fetch  linked  metadata  from  social  networks   •  do  senUment  analysis  &  annotate  record  accordingly   •  conUnuously  maintain  stats  over  sliding  windows   •  compute  exact  or  approx.  disUnct  values  &  quanUles  
  • 23. Use  Case:  Cloudera  Search   An  Integrated  Part  of   the  Hadoop  System   One  pool  of  data   One  security  framework   One  set  of  system  resources   One  management  interface  
  • 24. What  is  Cloudera  Search?   •  Full-­‐text,  interacUve  search  and  faceted  navigaUon   •  Batch,  near  real-­‐Ume,  and  on-­‐demand  indexing   •  Apache  Solr  integrated  with  CDH   •  Established,  mature  search  with  vibrant  community   •  Separate  runUme  like  MapReduce,  Impala   •  Incorporated  as  part  of  the  Hadoop  ecosystem   •  Open  Source   •  100%  Apache,  100%  Solr   •  Standard  Solr  APIs  
  • 25. ETL  for  Distributed  Search  on  Apache  Hadoop   Flume   Hue  UI   Custom   UI   Custom   App   Solr   Solr   Solr   SolrCloud   query   query   query   Index   (ETL)   Hadoop  Cluster   MR   HDFS   Index   (ETL)   HBase   Index   (ETL)  
  • 26. Near  Real  Time  ETL  &  Indexing  with  Flume   Log  File   Apache  Solr  and   Apache  Flume   •  Data  ingest  at  scale   •  Flexible  extracUon  and   mapping   •  Indexing  at  data  ingest   •  Packaged  as  Flume   Morphline  Solr  Sink   HDFS   Flume   Agent   Indexer  w/   Morphline   Other  Log  File   Flume   Agent   Indexer  w/   Morphline   26   agent.sinks.solrSink.type = org.apache.flume.sink.solr.morphline.MorphlineSolrSink agent.sinks.solrSink.morphlineFile = /etc/flume-ng/conf/morphline.conf Flume.conf  
  • 27. Cloudera  Manager  Flume  Morphline  GUI   27
  • 28. Scalable  Batch  ETL  &  Indexing   Index   shard   Files   Index   shard   Indexer  w/   Morphline   Files   Solr   server   Indexer  w/   Morphline   Solr   server   28 HDFS   Solr  and  MapReduce   •  Flexible,  scalable  batch   indexing   •  Start  serving  new  indices   with  no  downUme   •  On-­‐demand  indexing,  cost-­‐ efficient  re-­‐indexing   •  Packaged  as   MapReduceIndexerTool   hadoop ... MapReduceIndexerTool --morphline-file morphline.conf ...
  • 29. MapReduceIndexerTool   29 hadoop ... MapReduceIndexerTool --morphline-file morphline.conf ... S0_0_0 Extractors (Mappers) Leaf Shards (Reducers) Root Shards (Mappers) S0_0_1 S0S0_1_0 S0_1_1 S1_0_0 S1_0_1 S1S1_1_0 S1_1_1 Input Files ... ... ... ... •  Morphline  runs  inside  Mapper  
  • 30. Near  Real  Time  indexing  of  Apache  HBase   HDFS   HBase   interacUve  load   Lily  HBase   Indexer(s)   with   Morphline   Triggers  on   updates   Solr  server   Solr  server   Solr  server   Solr  server   Solr  server   Search   +   =   Large  scale  tabular  data   immediate  access  &  updates   fast  &  flexible  informaDon   discovery   BIG  DATA  DATAMANAGEMENT  
  • 31. Batch  &  Near  Real  Time  ETL   Tweets Flume Solr Hue UI HDFS MapReduceIndexerTool, Impala, HBase, Mahout, EDW, MR, etc Lily HBase Indexer HdfsSink Query MapReduce IndexerTool Log Formats Social Media HTML Images PDF Custom UI Query Custom App ... Morphline Morphline MorphlineSink Morphline HBase OLTP
  • 32. What’s  next   •  More  work  on  Apache  HBase  IntegraUon   •  IntegraUon  into  Apache  Crunch   •  Stream  AnalyUcs  
  • 33. Conclusion   •  Cloudera  Development  Kit  w/  Morphlines     •  Open  Source  -­‐  ASL  License   •  Version  0.4.1  shipping   •  Extensive  documentaUon   •  Send  your  quesUons  and  feedback  to  cdk-­‐dev  mailing  list   •  Also  ships  integrated  with  Cloudera  Search   •  Free  QuickStart  VM  also  available!