ZuInnoTe / hadoopcryptoledger

Hadoop Crypto Ledger - Analyzing CryptoLedgers, such as Bitcoin Blockchain, on Big Data platforms, such as Hadoop/Spark/Flink/Hive
Apache License 2.0
141 stars 51 forks source link

Bitcoin: Add example on how to calculate transaction fee #22

Open jornfranke opened 7 years ago

jornfranke commented 7 years ago

This is about adding examples for Hive: - here you need to explode the transactions in a table, calculate their current hash and join the inputs of a transactions based on the hash and input index. The difference between the total sum of input values - the total sum of output values corresponds to the transaction fee Flink: - similar as in Hive using FlinkSQL Spark: - similar as in Hive using Spark SQL MapReduce: here a more detailed mapreduce job need to be specified for calculating transaction fees.