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

                            主站蜘蛛池模板: 精品国产一级 | 97av视频在线观看 | 2022精品国偷自产免费观看 | www.日本在线观看 | 国产精品视频观看 | 国产成人精品免费 | 亚洲高清一区二区三区 | 99国产视频| 午夜影院在线观看视频 | 久久九| 国产精品视频一区二区三区 | 国产综合精品一区二区三区 | 中文字幕亚洲精品 | 日韩欧美国产精品综合嫩v 一区中文字幕 | 干干天天 | sese视频在线观看 | 欧美偷偷 | 免费一级片| 国产精品久久777777 | 日韩精品在线看 | 国产一区二区三区视频在线观看 | 国产一区二区欧美 | 国产原创视频 | 五月婷婷丁香婷婷 | 国产成人精品综合 | 精品日韩欧美一区二区 | 欧美成人精品一区二区男人看 | 国产一区二区 | 欧美日韩国产在线观看 | 久久精品国产免费高清 | 97色在线观看免费视频 | 91亚洲精品久久久电影 | 九九色综合 | 日韩三级在线 | 国产精品久久777777 | 亚洲婷婷一区 | 亚洲乱码一区二区三区在线观看 | 日本a级大片 | 九九热精品视频 | 欧美亚洲国产日韩 | 国产网站在线 |