Member since
11-17-2015
21
Posts
17
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2707 | 03-29-2016 02:06 PM | |
2279 | 02-18-2016 08:41 PM |
04-25-2016
03:14 PM
This wasn't set up for me by default. It also wasn't mentioned in any of the documentation that I've reviewed. Thanks for the help!
... View more
03-30-2016
09:50 PM
1 Kudo
@Adam Doyle If I understand your question correctly, you could try to use a state management function with UpdateStateByKey (http://spark.apache.org/docs/latest/streaming-programming-guide.html#transformations-on-dstreams) where the key is the recordType field (I am assuming this is a String). You would need to have all of the target HBase tables initialized at startup and then you would put the handle object for each table into a map where the key is also the recordType string. The function itself would just have the logic to persist the record by looking up the Hbase table object in the map you created earlier. The you just create the Hbase Put object by looping through the columns and values of the record and then executing the Put to the table you got from the Table Map. The stateful function is typically used to keep a running aggregate. However, because it actually partitions the DStream (I believe by creating separate DStreams) based on the key you provide it should allow you to write generic logic where you lookup the specifics (like target table and columns) at run time.
... View more
03-30-2016
12:50 AM
Actually the way here by setting through Configuration is the the same as what I above by using SparkConf, SparkConf will pick out all the configurations started with "spark.hadoop", remove the prefix and set into Hadoop Configuration.
... View more
04-06-2016
06:44 PM
Thanks @ssoldatov, it worked perfectly
... View more
02-18-2016
08:47 PM
@Adam Doyle I have accepted this as best answer. Thanks for the followup!
... View more
11-15-2017
08:48 AM
connection
attempt 1 to Netty-Client-testHost1/IP:6703
failed: java.lang.RuntimeException: Returned channel was actually not
established assist me with above error ,
Hi I am getting below error on all workers logs connection
attempt 1 to Netty-Client-testHost1:6703
failed: java.lang.RuntimeException: Returned channel was actually not
established kindly assist with this issue
... View more