GithubHelp home page GithubHelp logo

scripts's Introduction

scripts Description

Create_keytab.exp

This is an Expect script that takes three variables UserID, Password and REALM to create a keytab for the specified UserID. To be able to use this script, you will need to have expect package installed on your machine.

./create_keytab.exp testuser password test.example.com
spawn ktutil
addent -password -p [email protected] -k 1 -e aes256-cts
ktutil:  addent -password -p [email protected] -k 1 -e aes256-cts
Password for [email protected]:
ktutil:  addent -password -p [email protected] -k 1 -e aes128-cts
Password for [email protected]:
ktutil:  addent -password -p [email protected] -k 1 -e arcfour-hmac
Password for [email protected]:
ktutil:  addent -password -p [email protected] -k 1 -e des-cbc-md5
Password for [email protected]:
ktutil:  addent -password -p [email protected] -k 1 -e des3-cbc-sha1
Password for [email protected]:
ktutil:  wkt testuser.keytab

klist -ket testuser.keytab
Keytab name: FILE:testuser.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 07/04/2018 14:31:51 [email protected] (aes256-cts-hmac-sha1-96)
   1 07/04/2018 14:31:51 [email protected] (aes128-cts-hmac-sha1-96)
   1 07/04/2018 14:31:51 [email protected] (arcfour-hmac)
   1 07/04/2018 14:31:51 [email protected] (des-cbc-md5)
   1 07/04/2018 14:31:51 [email protected] (des3-cbc-sha1)

hive_db_mover.sh

Occasionally, we got a request from app teams to move their HIVE DB from one location to another. So far Hive doesn't support export and import of databases, but its supports tables export/import. In this script I looped though all the tables of a given database, exported them to another location "/tmp", then imported them to a new database in a new location.

Note: DB is moved within the same cluster

scripts's People

Contributors

waelemam avatar

Watchers

Vijay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.