tispark | TiSpark is built for running Apache Spark on top

 by   pingcap Scala Version: v3.2.2 License: Apache-2.0

kandi X-RAY | tispark Summary

kandi X-RAY | tispark Summary

tispark is a Scala library typically used in Big Data, Spark applications. tispark has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

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

            kandi-support Support

              tispark has a medium active ecosystem.
              It has 856 star(s) with 245 fork(s). There are 50 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 94 open issues and 609 have been closed. On average issues are closed in 70 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tispark is v3.2.2

            kandi-Quality Quality

              tispark has 0 bugs and 0 code smells.

            kandi-Security Security

              tispark has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              tispark code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              tispark is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              tispark releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              tispark saves you 43435 person hours of effort in developing the same functionality from scratch.
              It has 55051 lines of code, 3742 functions and 541 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed tispark and discovered the below as its top functions. This is intended to give you an instant insight into tispark implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            tispark Key Features

            No Key Features are available at this moment for tispark.

            tispark Examples and Code Snippets

            No Code Snippets are available at this moment for tispark.

            Community Discussions

            QUESTION

            Dropped rows in Spark when modifying database in MySQL
            Asked 2019-Jul-12 at 08:38

            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:38

            I'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

            1. 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.
            2. 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

            Source https://stackoverflow.com/questions/56993559

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tispark

            Read the Quick Start.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries