
# log dir
directory "/home/hadoop/log-drop" do
  owner "hadoop"
  group "hadoop"
  mode "0744"
end

# script to import data into hive
cookbook_file "/usr/local/bin/logs2hive.sh" do
  source "import/logs2hive.sh"
  owner "hadoop"
  group "hadoop"
  mode "0500"
end


cron "logs2hivecron" do
  command "/usr/local/bin/logs2hive.sh"
  user "hadoop"
end


# log dir
directory "/home/hadoop/log-drop" do
  owner "hadoop"
  group "hadoop"
  mode "0755"
end

# script to import data into hive
cookbook_file "/usr/local/bin/logs2hive.sh" do
  source "import/logs2hive.sh"
  owner "hadoop"
  group "hadoop"
  mode "0500"
end


cron "logs2hivecron" do
  command "/usr/local/bin/logs2hive.sh"
  user "hadoop"
end

Modify the permissions on the data-drop directory from 744 to 755 so Nagios can monitor this dir
Modify the permissions on the data-drop directory from 744 to 755 so Nagios can monitor this dir


Former-commit-id: 910ccd58f438cbe44b0810274147c3af6ca14931 [formerly a2686546cf21493051a82822218c4d7fe26098c8] [formerly 88b8bab7c78ce1e88dc6be6d0c2ae558c5868618 [formerly 2199c9d11a22393fd3d74673da247587a412e655 [formerly 5fa721e6c831163613cd04875db63f717f9ad755]]]
Former-commit-id: f027e65f3b61269f86e8e8d160a192db0d46729b [formerly 585a737e7e82e5213d8575e80fbf7d907b982fe4]
Former-commit-id: 2263d737c34b6dba6a3df3d607fee4ba8749534a
Former-commit-id: 6616aa9e3a8a606ced272bbea32f11b5faa560b3