Comments (1)
I'm aware that custom mapping is not well implemented in this library and need to be changed.
Right now, there are two methods for custom mapping, the first one requiring the usage of the HBase API for converting fields to Array[Byte]
, the second one, simpler, requiring no such knowledge. Your change seems to affect only the "low-level" method for custom mapping.
I think that we should encourage the usage of the simple method. There are many scala types that aren't currently managed by the library, including collection objects. When these types will be added to the library, the users should not be required to learn how to convert them to Array[Byte]
, it should be responsibility of the library.
Currently the library uses a compile-time type binding so, when you try to convert a tuple (Int, Double)
to a couple of Array[Byte]
, the compiler binds each element of the tuple to the right converter. If we use the same strategy you are suggesting for the "simple mapping", i.e. using a Map
instead of a tuple and a list of columns, we will lose type information at compile time and the conversion mechanism would not work. I think we should find a better strategy supporting only "simple mapping".
from spark-hbase-connector.
Related Issues (20)
- How is the Performance of this Connector? HOT 1
- Upload package to https://spark-packages.org/
- Can this framework use Java? HOT 1
- there is not spark-hbase-connector_2.11 Could it support scala 2.11? HOT 4
- could not find implicit value for parameter mapper: it.nerdammer.spark.hbase.conversion.FieldWriter[org.apache.spark.sql.Row] rdd.toHBaseTable("mytable") HOT 2
- Running in Spark 2.2
- spark streaming with hbase ERROR HOT 2
- I got this error when running the connector: java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException Any idea ?
- ClusterId read in ZooKeeper is null HOT 2
- Continuously INFO JobScheduler: Added jobs for time HOT 2
- Whether to support kerberos authentication access? HOT 2
- Caused by: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:208)
- how do i apply a customized partitioner to hBaseRDD? HOT 2
- how do i generate a pairRDD?
- IllegalArgumentException: Unexpected number of columns: expected 2 or 1, returned 1 HOT 1
- Pyspark support
- java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.List$SerializationProxy to field org.apache.spark.rdd.RDD.org$apache$spark$rdd$RDD$$dependencies_ of type scala.collection.Seq in instance of org.apache.spark.rdd.MapPartitionsRDD HOT 1
- tuple limit 22 while inserting data into hbase HOT 1
- Supports hbase-1.2.X? HOT 2
- Spark2.4.2, Hbase1.4.9 run error, can not find the class : java.lang.ClassNotFoundException: org.apache.hadoop.hbase.regionserver.StoreFileWriter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-hbase-connector.