<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27473#M19345</link>
    <description>&lt;P&gt;Yes I'm able to make a cron entry in the running cluster's spark driver node through ssh. ​&lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 17:56:09 GMT</pubDate>
    <dc:creator>Sugumar_Sriniva</dc:creator>
    <dc:date>2022-02-26T17:56:09Z</dc:date>
    <item>
      <title>Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27467#M19339</link>
      <description>&lt;P&gt;Dear connections,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm unable to run a shell script which contains scheduling a Cron job through init script method on Azure Data bricks cluster nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error from Azure Data bricks workspace:&lt;/P&gt;&lt;P&gt;"databricks_error_message": "Cluster scoped init script dbfs:/&amp;lt;shell-script&amp;gt; failed: Script exit status is non-zero"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for a method to achieve the same.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 11:36:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27467#M19339</guid>
      <dc:creator>Sugumar_Sriniva</dc:creator>
      <dc:date>2022-02-22T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27468#M19340</link>
      <description>&lt;P&gt;Hello @Sugumar Srinivasan​&amp;nbsp;- Welcome to the community! It's nice to meet you. My name is Piper, and I'm a moderator for Databricks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's give the other members a chance to answer your question. We'll come back to this if we need to. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 18:22:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27468#M19340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-22T18:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27469#M19341</link>
      <description>&lt;P&gt;I do not completely understand what you are trying to do?&lt;/P&gt;&lt;P&gt;Are you trying to schedule a cron job on the cluster workers?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 07:53:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27469#M19341</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-02-23T07:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27470#M19342</link>
      <description>&lt;P&gt;Hi werners,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to perform the cleanup of azure data bricks driver logs (std.out, std.err, log4j)  from dbfs path every hour. to achieve this I'm trying to schedule one Cron job on data bricks driver node so that logs can be deleted every one hour. While using below script in init, the azure databricks cluster creation is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The shell script contains below content:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbfs:/FileStore/crontab-setup-for-log-cleanup.sh&lt;/P&gt;&lt;P&gt;sudo -H -u root bash -c 'echo "$(echo "* */5 * * * sh /dbfs/FileStore/driver-logs-cleanup.sh" ; crontab -l 2&amp;gt;&amp;amp;1)" | crontab -'&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 13:08:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27470#M19342</guid>
      <dc:creator>Sugumar_Sriniva</dc:creator>
      <dc:date>2022-02-23T13:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27471#M19343</link>
      <description>&lt;P&gt;Does the script work while the cluster is running, to exclude a issue with the script itself?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 13:15:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27471#M19343</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-02-23T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27472#M19344</link>
      <description>&lt;P&gt;DataBricks Cluster Creation is failing while running the cron job scheduling script through init Script Method from Azure Data Bricks&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 10:17:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27472#M19344</guid>
      <dc:creator>Tasootoor1998</dc:creator>
      <dc:date>2022-02-26T10:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27473#M19345</link>
      <description>&lt;P&gt;Yes I'm able to make a cron entry in the running cluster's spark driver node through ssh. ​&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:56:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27473#M19345</guid>
      <dc:creator>Sugumar_Sriniva</dc:creator>
      <dc:date>2022-02-26T17:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27474#M19346</link>
      <description>&lt;P&gt;the issue is definitely the init script.Please cross check the init script or you can post it here if no sensitive info. we can cross verify.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 14:12:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27474#M19346</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-08T14:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27475#M19347</link>
      <description>&lt;P&gt;@Sugumar Srinivasan​&amp;nbsp; are you able to check the init script to rectify the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 05:07:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27475#M19347</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-16T05:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27476#M19348</link>
      <description>&lt;P&gt;@Atanu Sarkar​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using the below shell script for trying to schedule the crontab in databricks node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;crontab-setup-for-log-cleanup.sh&lt;/B&gt;&lt;/P&gt;&lt;P&gt;sudo -H -u root bash -c 'echo "$(echo '* */3 * * * sh /dbfs/FileStore/driver-logs-cleanup.sh' ; crontab -l 2&amp;gt;&amp;amp;1)" | crontab -'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;driver-logs-cleanup.sh&lt;/B&gt;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;#Find the the older stdout, stderr and log4j files and deletes it accordingly.&lt;/P&gt;&lt;P&gt;find /dbfs/cluster-logs/&amp;lt;db-cluster-id&amp;gt;/driver/ -name "stdout--*" -exec rm -f {} \;&lt;/P&gt;&lt;P&gt;find /dbfs/cluster-logs/&amp;lt;db-cluster-id&amp;gt;/driver/ -name "stderr--*" -exec rm -f {} \;&lt;/P&gt;&lt;P&gt;find /dbfs/cluster-logs/&amp;lt;db-cluster-id&amp;gt;/driver/ -name "log4j""-""*"".gz" -exec rm -f {} \;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sugumar Srinivasan.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 07:04:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27476#M19348</guid>
      <dc:creator>Sugumar_Sriniva</dc:creator>
      <dc:date>2022-03-23T07:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27478#M19350</link>
      <description>&lt;P&gt;Hi @Sugumar Srinivasan​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Are you still having issues with your init script or not any more? Please let us know.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 18:20:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27478#M19350</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-04-11T18:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data bricks cluster creation is failing while running the Cron job scheduling script through init script method from azure data bricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27479#M19351</link>
      <description>&lt;P&gt;Hello @Sugumar Srinivasan​&amp;nbsp; Could you please enable cluster log delivery and inspect the INIT script logs in the below path dbfs:/cluster-logs/&amp;lt;clusterId&amp;gt;/init_scripts path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/clusters/configure.html#cluster-log-delivery-1" target="test_blank"&gt;https://docs.databricks.com/clusters/configure.html#cluster-log-delivery-1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 16:09:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/data-bricks-cluster-creation-is-failing-while-running-the-cron/m-p/27479#M19351</guid>
      <dc:creator>User16764241763</dc:creator>
      <dc:date>2022-04-13T16:09:44Z</dc:date>
    </item>
  </channel>
</rss>

