tispark | TiSpark is built for running Apache Spark on top
kandi X-RAY | tispark Summary
kandi X-RAY | tispark Summary
TiSpark is a thin layer built for running Apache Spark on top of TiDB/TiKV to answer complex OLAP queries. It enjoys the merits of both the Spark platform and the distributed clusters of TiKV while seamlessly integrated to TiDB, a distributed OLTP database, to provide one-stop Hybrid Transactional/Analytical Processing (HTAP) solutions for online transactions and analyses.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Overrides the superclass of AggregateFunction
- Overriding superclass method for scalar functions
- Converts a FuncCallExpr to a proto type
- Serialize an IsNull
- Translates a string RegExpression node
- Encode a constant value
- Visits a ColumnRef node
- Translates a logicalBinaryBinaryExpression into its canonical form
- Translates the given UNary node to its corresponding protob representation
- Create a scalar expression
- Returns the set of parts covered by the expression
- Visit the partitioned binary expression
- Performs the logical AND of the logical binary expression
- Visit a comparison expression
- Writes a long value out to the given address
- Visits a logical binary expression
- Returns a list of all grants associated with a role
- Selects all instances of the given region
- Cut the first encoded value
- Convert data type to Spark type
- Get the default type for the given value
- Sets a decimal to the given address
- Converts duration to string
- Performs a random sampling of bytes
- Returns a string representation of this object
- Decodes a non - null value
- Reads the column values from the given byte array
- Convert configuration to tiark configuration
- Generate initial MySQL type map
- Decodes column vector
- Process a region task
tispark Key Features
tispark Examples and Code Snippets
Community Discussions
Trending Discussions on tispark
QUESTION
I've been following the 5 min how to for setting up an htap databse with tidb_tispark and everything works until I get to the section Launch TiSpark. My first issue occurs when executing the line:
...ANSWER
Answered 2019-Jul-12 at 08:38I'm one of the main dev of TiSpark. Sorry for your bad experience with it.
Due to my docker problem, I cannot directly reproduce your issue but it seems you hit one of the bug fixed recently. https://github.com/pingcap/tispark/pull/862/files
- The tutorial document is not quite up-to-date and points to an older version. That's why it didn't work with spark 2.1.1 as in tutorial. We will update it ASAP.
- Newer version of TiSpark doesn't use tidbMapDatabase anymore but hooks with catalog directly instead. Method tidbMapDatabase remains for backward compatibility. Unfortunately, the tidbMapDatabase had a bug(when we ported it from older version) that it retrieves timestamp for query only once you call the function. That causes TiSpark always uses old timestamp to do snapshot reading and newer data would never be seen by it.
In newer version of TiSpark (TiSpark 2.0+ with Spark 2.3+), databases and tables are directly hooked into catalog services and you can directly call
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tispark
TiSpark now supports Spark 2.3.0+、2.4.0+、3.0.0+ and 3.1.0+. The earlier TiSpark versions for Spark 2.1.0+ are not supported anymore. Currently java8 is the only choice to build TiSpark, run mvn -version to check.
For the users of Spark 2.1 who wish to upgrade to the latest TiSpark version on Spark 2.3/2.4, download or install Spark 2.3+/2.4+ by following the instructions on Apache Spark Site and overwrite the old spark version in $SPARK_HOME.
For TiSpark version >= 2.0:. Note: If you use TiSpark 2.0+, for spark-submit on Pyspark, tidbMapDatabase is still required and TiExtension is not supported yet. PingCAP is working on this issue.
add spark.sql.extensions org.apache.spark.sql.TiExtensions in spark-defaults.conf.
ensure that spark.tispark.pd.addresses is set correctly.
When upgrading from TiDB-2.x to TiDB-3.x,.
make sure that you are using at least TiSpark-2.1.2 (TiSpark-2.1.9 is highly recommended).
tidbMapDatabase is deprecated after TiSpark-2.x, make sure that you are not using it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page