Showing posts with label repository. Show all posts
Showing posts with label repository. Show all posts

Friday, 7 July 2017

Creating a Kettle Repository

Creating a Kettle Repository


I wanted to create a new set of transformations that I was constructing for a project. For the same, I set up GeoKettle, a spatial ETL tool. Starting Kettle I was always wondered what the Central repository was. As I browsed through some old threads on user forums, I understood that Kettle repository was for centralizing your jobs and transformations across projects and users into a single place, so anyone could execute them.

That seemed like a good idea. However, most older posts had some concerns around its stability. Realizing that these concerns were probably five years or so old, I decided to set it up anyway.

First step is to create a Postgresql database user. For this, we need to first login as the postgres user within the Ubuntu environment and connect to the postgres

> su - postgres


Next we login to the psql environment and create a database level user called kettleadmin.
postgres > psql
psql > create user kettleadmin with password kettleadmin;


We then create a database called kettledb and we will grant all access to this database to user kettleadmin.

psql > create database kettledb;
psql> grant all on database kettledb to kettleadmin;

Now that we have setup the database, we can setup the kettle repository.
First step is to launch the GeoKettle shortcut. That brings the dialog box to choose your repository.


Now click the button for �New� to make a new repository, and click again on the following dialog box to create a new database connection.


On clicking the new button, another dialog box appears. Select Postgresql as the database connection type. Next, we specify the connection parameters to the database we have just created using credentials for kettleadmin as shown below


Click on �Test� to make sure the connection parameters are correct.


Once done, enter the additional details like name and description, and click �Create or Upgrade� to create the repository for the first time.



Once executed, the application will provide a list of commands executed.
Next, access the original command window and enter the default Login name and password for the database, which is admin/admin. Click on OK.


Now, on the dialog that appears, you can click on the top menu item �Repository� and click on link to �Explore Repository�.


This launches a window, where we can make changes to the current repository. The first step would be to add a new user for myself, to ensure I dont corrupt the configuration while working. I can do this by selecting the Users link and right clicking to select �New User� from the context menu.


Now I can configure this the way I want, to add new users. We are all set to move forward.


{ Read More }


Monday, 19 June 2017

Create my own repository on RedHat 6

Create my own repository on RedHat 6


Create my own repository on Linux RedHat 6

????????????? ??????????? RedHat ???????????? ?????????? ????? ??????????? ?????? yum ???? Internet ?????? ?????????????????? ???????????? Repository  ?????????????? ???????? Second Repository ?????? ???????????

 step 1. ????? mount  cdrom ?????????
#mkdir /mnt/dvd

#mount /dev/cdrom  /mnt/dvd



step 2. ????? ??????? Package createrepo*.rpm ??? cdrom ?????? mount

#yum localinstall /mnt/dvd/Server/createrepo*.rpm

step 3. ????????????? directory ????????? Package ??? file ????? ??????

#mkdir /myrepo/

#cd /myrepo

#cat /mnt/dvd/*/repodata/*.xml >> mycomps.xml

#vim  mycomps.xml

????????? ??? ????????? mycomps.xml ?????????? ????? ?????????????????????? <comps></comps> ??????????????????? ??? ??????? ?? <comps>??? </comps> ??? ???????????????

step 4. ????? copy ???? ???????????????? ?????????????????????????

#cp -av /mnt/dvd .

#createrepo -g mycomps.xml .

#vim /etc/yum.repos.d/rhel60-dvd.repo

???????????????????????????

[myrhel6]
name=Red Hat Enterprise Linux x86_64
baseurl=file:///myrepo
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

??????? ?????????? ???????????????? Install Packet ????? ????????????? ?????????? Online ??????? ????? Download Packet ???????????? ??? Internet ???????
#yum install <packet>



Good luck
{ Read More }


Saturday, 8 April 2017

Creating The Repository TortoiseSVN

Creating The Repository TortoiseSVN







Here the steps to create a Repository on an existing SVN Server :



Step 1 :  Creating the Repo

# svnadmin create testrepo


Step 2 : Giving ownership for the created Repo

# chown -R svn /svn/testrepo/


Step 3 : Deleting the default passwd file from Conf folder

# mv  -r passwd passwd.old 

(from newly create repo , inside conf directory)


Step 4 : Now Create a soft link to the passwd file which present in location at /svn/testrepo/conf  with a command -

# ln �s /svn/passwd /svn/testrepo/conf/passwd


Step 5 : Edit the svnserve.conf and change like this

# vi  /svn/testrepo/conf/svnserve.conf

Anon_access=none
Auth_access=write
Password-db=passwd

:wq!

# service xinetd restart


Step 6 : Now create the initial directories

# svn mkdir file:///svn/testrepo/{trunk,tags,branches} -m "initial directories"


Step 6 : Now just checkout and see

# svn co svn://testrepo.abc.com/testrepo/ /mnt/test


***** Thanks *****





{ Read More }