Skip to main content

Posts

Setup Apache Zookeeper Cluster in Amazon Cloud ( AWS ) or Google Cloud

Environment : Amazon AWS , Red Hat linux VM with 1 CPU 1 GB RAM ZOOKEEPER Version : 3.4.11 Step 1 : Download your Apache Zookeeper from one of the mirrors available in official ZOOKEEPER SITE  Step 2 : Copy the downloaded ( zookeeper-3.4.11.tar.gz ) file to the AWS / Google cloud servers using SCP/Winscp          ( Example: scp -i "XXXXXX.pem" zookeeper-3.4.11.tar.gz  ec2-user@ec2-xx-xx-xx-xx.us-east-2.compute.amazonaws.com:/home/ec2-user/. ) Step 3 : Or download the zookeeper directly on the servers using one of the available mirrors using WGET                  ( Example : sudo wget "http://mirror.cogentco.com/pub/apache/zookeeper/ " -O  zoo.tar.gz ) Step 4 : Untar the zookeeper & create 'myid' file in the data directory which contains just zookeeper id ( example : 1 ) Step 5 : Need to create zoo.cfg file from zoo_sample.cfg and modify the following things Step...
Recent posts

Create or Customize Master Page in sharepoint

Before using the base master page,please fimiliare yourself with various sections of the base master page code · Required Components · Optional Components · Hidden Components Required Components: If no availability of required components sharepoint page cannot render properly All the components are placed in a their corresponding content place holder asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” /> This content placeholder corresponds to the content area in page layouts.It is required for the MOSS site to render properly. All the required which are not usefull should be placed .If you delete those place holders sharepoint page cannot render properly Following are the some of the required components asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” /> asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server"> asp:ContentPlaceHolder id="PlaceHolderTopNavBar...

Remove inline styles using jQuery

if the page has the following structure to remove all the inline styles use following javascript code embedd after jQuery file

Sharepoint custom list with next and previous arrows

Try this: Open the custom list. On the left side just above the list there's a 'View' dropdownlist. Pull down the arrow and go to 'Modify this view'. Scroll down to 'Item Limit' and input the number of items per page and select the first option (Display...). This should give you navigation arrows to the left of the 'View' dropdownlist. Thanks Girish

Backup sharepoint site and restore it on another server

Follow the steps to take sharepoint site bckup 1-->Open command prompt 2-->Migrate to sharepoint bin directory C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN 3-->Enter following command to take backup of site on "xx" server on port number : "yyy" stsadm -o backup -url "http://xxx:yyy" -filename c:backup.bak 4-->To restore the site use following command stsadm -o restore -url myothersite/ -filename backup-filename.bak (For New Site) Note: In place of myothersite replace your site name use above command for new site .. use -overwrite for already existing site stsadm -o restore -url myothersite/ -filename backup-filename.bak -overwrite (For Existing Site)