Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sleep 10
cp /dbfs/hive_metastore_jar /databricks/hive_metastore_jars/
sleep 10
@silviutofan92
silviutofan92 / playlistplugin.py
Created December 18, 2017 10:03
DSS Spotify Plugin
# Code for custom code recipe recipe from notebook Spotify Plugin (imported from a Python recipe)
# To finish creating your custom recipe from your original PySpark recipe, you need to:
# - Declare the input and output roles in recipe.json
# - Replace the dataset names by roles access in your code
# - Declare, if any, the params of your custom recipe in recipe.json
# - Replace the hardcoded params values by acccess to the configuration map
# See sample code below for how to do that.
# The code of your original recipe is included afterwards for convenience.
# Copyright (C) 2010 Simon Wessing
# TU Dortmund University
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@silviutofan92
silviutofan92 / full_df
Created June 15, 2016 18:46
Full Dataframe
This file has been truncated, but you can view the full file.
Project Week Slot Request Cluster Group
0 1 1 0 2 3
1 1 2 0 2 3
2 1 3 0 2 3
3 1 4 0 2 3
4 1 5 0 2 3
5 1 6 0 2 3
6 1 7 0 2 3
7 1 8 0 2 3
8 1 9 0 2 3