Skip to main content

"invalidate metadata" with ${record:attribute('jdbc.tables')} isn't working in Hive Executor.

  • February 19, 2022
  • 0 replies
  • 33 views

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img

Question:

I'm using Hive executor at the end of my pipeline to issue "invalidate metadata ${record:attribute('jdbc.tables')};". The expression produces a blank string so the command fails. If I hard-code the table name instead, it works correctly.

 

Answer:

The expression "${record:attribute('jdbc.tables')}" is used to refer to the header attribute of a data record. But in this case we are actually dealing with an event record, which has a different structure and does not contain the 'jdbc.tables' attribute.

For a detailed tutorial on how to issue an "invalidate metadata" statement at the end of your pipeline, check out this Case Study: https://streamsets.com/documentation/datacollector/latest/help/index.html#datacollector/UserGuide/Event_Handling/EventFramework-Title.html#concept_szz_xwm_lx

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply