Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Max Huang
    @sakanamax
    今天是三樓345喔
    Max Huang
    @sakanamax
    謝謝講師昨天的分享還有 mesos 的 plus 分享
    再麻煩取得 slide 讓我 commit
    :)
    JamJam
    @jaminglam
    @cleaton Thanks for your advice, I agree with your point that avoid using too many classes and using object instead. logInfo() is a member function of trait org.apache.spark.Logging. It is weird that I read source code of apache spark 1.6, I found some codes such as JdbcUtils (org.apache.spark.sql.execution.datasources.jdbc) also use member functions of Logging in foreachPartition and based on my previous experience, in other function(map, reduceByKey), logInfo works well, exception only occurs in foreachPartition. Besides, how to log for debug while developing spark application, do you have any advice?
    Jesper Lundgren
    @cleaton
    I mean is it a class or an object that you extend with the spark.Logging trait?
    JdbcUtils is an object.
    If you only change foreachPartition to foreach it works?
    JamJam
    @jaminglam
    yes, does you mean that If I have a class which include codes doing foreachPartition. Spark will serialize the whole class code?
    Jesper Lundgren
    @cleaton
    Yes
    the function will be a member of the class instance, and thus it will only exist on the driver at first
    when you try to call that function inside foreach/foreachpartition the driver will need to send the whole class instance to the executor machine
    if it's an object it is initalized separately
    for each jvm
    and thus spark only needs to give the method reference
    (and any parameter you give on the driver side)
    You should be able to see more information in the log from the spark driver
    this error happens before it reaches any of the executor nodes.
    JamJam
    @jaminglam
    I think I got it. Thanks a lot. @cleaton
    Jesper Lundgren
    @cleaton
    Hope it helps. Good luck :)
    Max Huang
    @sakanamax
    早安
    JamJam
    @jaminglam
    請問有沒有人遇到過spark streaming每處理一段時間后可能會有1,2個batch處理時間特別長遠超batch interval,但event數量其實沒有突然爆發式增長~這種情況,那個batch處理完后接下來處理時間又恢復穩定
    Stana
    @mathsigit
    請問這個spark streaming有做什麼特別的事情嗎?例如讀Hdfs檔案之類的
    Max Huang
    @sakanamax
    @mathsigit 麻煩協助取得簡報喔 :)
    Stana
    @mathsigit
    @sakanamax 抱歉現在才回覆,我會通知講師,取得簡報後馬上上傳
    Stana
    @mathsigit
    @sakanamax meetup讀書會的資料已經上傳囉!
    Max Huang
    @sakanamax
    感謝, 同步上傳到 nctu330
    iGene
    @iGene
    @hubertfc 11月的時間有決定了嗎?
    現在330已經可以用了
    Hubert Fan Chiang
    @hubertfc
    @iGene 那11/23晚上教室有空嗎? 麻煩你了~
    iGene
    @iGene
    @hubertfc 我問問看~
    禮拜五回報
    Hubert Fan Chiang
    @hubertfc
    謝謝!! @iGene
    Max Huang
    @sakanamax
    QQ 11/23跟活動衝堂
    我跟我們家新人說好了
    看看他有沒有時間
    Vito Jeng
    @vitojeng
    @sakanamax 是什麼活動呢 ?
    Vito Jeng
    @vitojeng
    我想應該可以喬看看喔,若隔天 11/24 或前一天 11/22
    OK 嗎 ?
    CM 大亂鬥, 四名講者 ? Cool ~~
    Max Huang
    @sakanamax
    以大家的時間為主拉
    :)
    Vito Jeng
    @vitojeng
    也可能是碰巧撞期... (其實我們很閒 XD)
    Hubert Fan Chiang
    @hubertfc
    那改到11/22如何?
    11/24好了
    @iGene 麻煩看一下11/24教室有空嗎
    iGene
    @iGene
    24號有碼農
    還是我借其他教室
    Hubert Fan Chiang
    @hubertfc
    借其他教室會很麻煩嗎?
    不會的話,就麻煩你看看,不然就11/22
    iGene
    @iGene
    借研討室很快
    Hubert Fan Chiang
    @hubertfc
    好,那研討室就行了,有投影機就好