久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='HN2in'></tfoot>

    <legend id='HN2in'><style id='HN2in'><dir id='HN2in'><q id='HN2in'></q></dir></style></legend>
  • <i id='HN2in'><tr id='HN2in'><dt id='HN2in'><q id='HN2in'><span id='HN2in'><b id='HN2in'><form id='HN2in'><ins id='HN2in'></ins><ul id='HN2in'></ul><sub id='HN2in'></sub></form><legend id='HN2in'></legend><bdo id='HN2in'><pre id='HN2in'><center id='HN2in'></center></pre></bdo></b><th id='HN2in'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HN2in'><tfoot id='HN2in'></tfoot><dl id='HN2in'><fieldset id='HN2in'></fieldset></dl></div>

      • <bdo id='HN2in'></bdo><ul id='HN2in'></ul>
      1. <small id='HN2in'></small><noframes id='HN2in'>

        在 Spark 中找不到適合 jdbc 的驅(qū)動程序

        No suitable driver found for jdbc in Spark(在 Spark 中找不到適合 jdbc 的驅(qū)動程序)
            <legend id='rPzkS'><style id='rPzkS'><dir id='rPzkS'><q id='rPzkS'></q></dir></style></legend>
              <tbody id='rPzkS'></tbody>
              • <bdo id='rPzkS'></bdo><ul id='rPzkS'></ul>
                  <tfoot id='rPzkS'></tfoot>

                  <small id='rPzkS'></small><noframes id='rPzkS'>

                  <i id='rPzkS'><tr id='rPzkS'><dt id='rPzkS'><q id='rPzkS'><span id='rPzkS'><b id='rPzkS'><form id='rPzkS'><ins id='rPzkS'></ins><ul id='rPzkS'></ul><sub id='rPzkS'></sub></form><legend id='rPzkS'></legend><bdo id='rPzkS'><pre id='rPzkS'><center id='rPzkS'></center></pre></bdo></b><th id='rPzkS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rPzkS'><tfoot id='rPzkS'></tfoot><dl id='rPzkS'><fieldset id='rPzkS'></fieldset></dl></div>
                  本文介紹了在 Spark 中找不到適合 jdbc 的驅(qū)動程序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用

                  df.write.mode("append").jdbc("jdbc:mysql://ip:port/database", "table_name", properties)
                  

                  插入到 MySQL 中的表中.

                  to insert into a table in MySQL.

                  此外,我在代碼中添加了 Class.forName("com.mysql.jdbc.Driver").

                  Also, I have added Class.forName("com.mysql.jdbc.Driver") in my code.

                  當我提交 Spark 申請時:

                  When I submit my Spark application:

                  spark-submit --class MY_MAIN_CLASS
                    --master yarn-client
                    --jars /path/to/mysql-connector-java-5.0.8-bin.jar
                    --driver-class-path /path/to/mysql-connector-java-5.0.8-bin.jar
                    MY_APPLICATION.jar
                  

                  這種紗線客戶端模式對我有用.

                  This yarn-client mode works for me.

                  但是當我使用紗線簇模式時:

                  But when I use yarn-cluster mode:

                  spark-submit --class MY_MAIN_CLASS
                    --master yarn-cluster
                    --jars /path/to/mysql-connector-java-5.0.8-bin.jar
                    --driver-class-path /path/to/mysql-connector-java-5.0.8-bin.jar
                    MY_APPLICATION.jar
                  

                  它不起作用.我也試過設(shè)置--conf":

                  It doens't work. I also tried setting "--conf":

                  spark-submit --class MY_MAIN_CLASS
                    --master yarn-cluster
                    --jars /path/to/mysql-connector-java-5.0.8-bin.jar
                    --driver-class-path /path/to/mysql-connector-java-5.0.8-bin.jar
                    --conf spark.executor.extraClassPath=/path/to/mysql-connector-java-5.0.8-bin.jar
                    MY_APPLICATION.jar
                  

                  但仍然出現(xiàn)找不到適合 jdbc 的驅(qū)動程序"錯誤.

                  but still get the "No suitable driver found for jdbc" error.

                  推薦答案

                  有 3 種可能的解決方案,

                  There is 3 possible solutions,

                  1. 您可能希望使用構(gòu)建管理器(Maven、SBT)組裝您的應(yīng)用程序,因此您無需在 spark-submit cli 中添加依賴項.
                  2. 您可以在 spark-submit cli 中使用以下選項:

                  1. You might want to assembly you application with your build manager (Maven,SBT) thus you'll not need to add the dependecies in your spark-submit cli.
                  2. You can use the following option in your spark-submit cli :

                  --jars $(echo ./lib/*.jar | tr ' ' ',')
                  

                  說明:假設(shè)您在項目根目錄的 lib 目錄中擁有所有 jar,這將讀取所有庫并將它們添加到應(yīng)用程序提交中.

                  Explanation : Supposing that you have all your jars in a lib directory in your project root, this will read all the libraries and add them to the application submit.

                  您也可以嘗試在 SPARK_HOME/conf/spark 中配置這 2 個變量:spark.driver.extraClassPathspark.executor.extraClassPath-default.conf 文件并將這些變量的值指定為jar文件的路徑.確保工作節(jié)點上存在相同的路徑.

                  You can also try to configure these 2 variables : spark.driver.extraClassPath and spark.executor.extraClassPath in SPARK_HOME/conf/spark-default.conf file and specify the value of these variables as the path of the jar file. Ensure that the same path exists on worker nodes.

                  這篇關(guān)于在 Spark 中找不到適合 jdbc 的驅(qū)動程序的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數(shù)根據(jù) N 個先前值來決定接下來的 N 個行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結(jié)果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數(shù)的 ignore 選項是忽略整個事務(wù)還是只是有問題的行?) - IT屋-程序員軟件開發(fā)技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環(huán)數(shù)組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時發(fā)生錯誤 沒有合適的驅(qū)動程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數(shù)據(jù)庫表作為 Spark 數(shù)據(jù)幀讀取?)
                  <tfoot id='PV5Qo'></tfoot>
                    <tbody id='PV5Qo'></tbody>

                    • <legend id='PV5Qo'><style id='PV5Qo'><dir id='PV5Qo'><q id='PV5Qo'></q></dir></style></legend>
                          <bdo id='PV5Qo'></bdo><ul id='PV5Qo'></ul>

                          <i id='PV5Qo'><tr id='PV5Qo'><dt id='PV5Qo'><q id='PV5Qo'><span id='PV5Qo'><b id='PV5Qo'><form id='PV5Qo'><ins id='PV5Qo'></ins><ul id='PV5Qo'></ul><sub id='PV5Qo'></sub></form><legend id='PV5Qo'></legend><bdo id='PV5Qo'><pre id='PV5Qo'><center id='PV5Qo'></center></pre></bdo></b><th id='PV5Qo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PV5Qo'><tfoot id='PV5Qo'></tfoot><dl id='PV5Qo'><fieldset id='PV5Qo'></fieldset></dl></div>
                          1. <small id='PV5Qo'></small><noframes id='PV5Qo'>

                            主站蜘蛛池模板: 精品久久电影 | 青青久久av北条麻妃海外网 | 亚洲一区二区在线播放 | 久久精品青青大伊人av | 国产精品日韩一区二区 | 色综合99 | 久久33| 精品一区二区在线看 | 国产精品一区二区三区四区 | 99精品一区二区三区 | 天天拍天天射 | 男人天堂视频在线观看 | 成人欧美一区二区三区在线观看 | 一区二区三区日韩 | av国产精品 | 国产一区二区精品在线观看 | 国产小视频在线 | 涩涩导航 | 精品在线一区 | 亚洲欧美日韩精品久久亚洲区 | 激情福利视频 | 欧美激情在线精品一区二区三区 | 超碰av人人 | 一区二区三区免费 | 久久黄色网 | 国产又色又爽又黄又免费 | 中文字幕一区二区三区在线观看 | 日韩在线观看网站 | 在线播放一区二区三区 | 成人免费小视频 | 精品亚洲一区二区三区四区五区高 | 美美女高清毛片视频免费观看 | 国产99久久精品一区二区永久免费 | 夜夜爽99久久国产综合精品女不卡 | 久久精品国产99国产 | 美女网站视频免费黄 | 日韩av免费在线电影 | 日韩电影免费观看中文字幕 | 黄色亚洲| 精品亚洲一区二区三区 | 久久综合伊人一区二区三 |