久久久久久久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 的驅動程序

        No suitable driver found for jdbc in Spark(在 Spark 中找不到適合 jdbc 的驅動程序)
            <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 的驅動程序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用

                  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
                  

                  它不起作用.我也試過設置--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
                  

                  但仍然出現找不到適合 jdbc 的驅動程序"錯誤.

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

                  推薦答案

                  有 3 種可能的解決方案,

                  There is 3 possible solutions,

                  1. 您可能希望使用構建管理器(Maven、SBT)組裝您的應用程序,因此您無需在 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 ' ' ',')
                  

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

                  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文件的路徑.確保工作節點上存在相同的路徑.

                  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.

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

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

                  相關文檔推薦

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

                            主站蜘蛛池模板: 黄色中文字幕 | 欧美日韩国产成人 | a视频在线观看 | 久草福利资源 | 国产日韩欧美日韩大片 | 成人网战| 国产69精品久久久久久 | igao在线观看 | 天天色影院| 日本一本在线 | 久久久黄色 | 亚洲天天干 | 夜夜肉她怀孕h周君彦 | 久久黄色大片 | 成人在线国产 | 亚洲资源在线观看 | 国产乱国产乱300精品 | 一区二区免费在线观看 | 福利小视频 | 手机看片国产 | 国内黄色片 | 免费精品| 日韩毛片免费看 | 美女操操操 | 天天拍夜夜操 | av大片在线观看 | 欧美一级在线观看 | 在线h片 | 亚洲精品网址 | 91超碰人人 | 国产理论在线观看 | 国产一区二区网站 | 国产精品乱| 欧美日韩一二三区 | 久久精品免费看 | 天天躁日日躁狠狠很躁 | 日本国产在线观看 | 亚洲第十页 | 久久精品一区二区三区四区五区 | 久久私人影院 | 久久九九视频 |