Monday, February 09, 2009

Distributed copy from remote hdfs to local hdfs

The command DistCp works for copying from one hdfs cluster to other hdfs cluster. But, the problem is that it is not specified any where(As I aware of) what should be the source url and destination url.
Many places, it is specified that specify hdfs://namenode1:50070/path_to_file and many other places some other port number.
So, after a lot of debugging, I figured out that it should be
hadoop distcp hdfs://(fs.default.name)_property_specified_in_hadoop-site.xml/path_to_file

for ex:
hadoop distcp hdfs://remotehost:10000/opt/hadoop-name/foo/bar hdfs://localhost:54310/opt/hadoop-name/foo/bar

The important note here is the url should be picked up exactly how it is in fs.default.name in hadoop-site.xml in hadoop conf directory.

Wednesday, January 21, 2009

Way to get hdfc standard life insurance premium receipt

Important Step: Never ever call the customer care (toll free:1800 209 7777). They give all weird reasons every time.
1. According to their policies, they can't send it to a mail id but can Fax it!!!
2. The system is going for upgradation (day and night for two days!!) so need to call after few hours and when you call go to step(2)
3. send a mail to service@hdfcinsurance.com and they will send a soft copy to u with in 3 days!!!(for sending a soft copy, it takes 3 days!!!!) But, in realty, it never happens.

Working Step:
Call up ur local branch - Again, it may redirect you to some other customer service -so, keep on pressing 9 till u hear a voice from other side (not the automated one :) )
then, tell them that you need a premium receipt.
Also, send a mail to oobangalore@hdfcinsurance.com requesting a premium receipt.

It worked for me. So, if you face similar issues, follow the procedure.

Monday, January 05, 2009

Files starting with -

If you have problem in using files starting with - in command prompt, then the solution is to use ./ in front of it.
Courtesy is this

Tuesday, December 30, 2008

Converting EOLs in dos format to unix

I had a file which contains dos style EOLs in it which I couldn't see except in Vim. Being long time, I forgot how to convert them to unix style EOLs and figured out only after searching in Google. :( My memory power is decreasing day by day I can say.
any ways, the command to use is

dos2unix filename

That's it.

Wednesday, November 12, 2008

Quote-1

After every sad day
comes a glad day

Question is: How will you define which is sad and which is glad. :D

want to be a kid forever

How good is life of a kid.no need to bother about what some one say. What ever we do as a kid, no one gets angry as they think that "leave it. he/she is just a kid".You are free to do what ever you want to do. No restrictions. no tensions.no responsibilities.

Friday, November 07, 2008

Enthusiasm is degrading poorly

I was browsing through my older posts starting from the blog that I first wrote. And, I could see a lot of degradation in all ways-
The fresh ideas I had just after coming out from school.
The frequency of writing
The kind of topics I chose during those days

After all, old is getting old day by day.And you can see younger kids are smarter than old.

Moral of the story: Time is precious. Don't waste it.

Wednesday, October 01, 2008

Finally,

Finally, smoking is going to be banned in public places from tomorrow.Source is this

But, I am not sure how many people actually follows it. :(

Monday, August 25, 2008

Life is boring
Life is exciting
Life is tough

Is it possible to feel all at the same time? I am just wondering.

Monday, July 28, 2008

LLR Questions

I attended LLR Test this weekend.
Below are some of the questions. There are more tricky questions, but I don't remember them.

1. What is the first property a person looses when he consumed alcohol
a. Anticipation b.Patience c. Judgement

My Answer was: a
2. What is the thing that you take extra care when you are taking right turn

a. Parked vehicle b.Vehicle coming in opposite direction c.

My answer was: b

3. When there is a signal of "Overtaking prohibited". Is that info
a. a Notice b. caution c. compelled

My answer was: c

4."You can take U turn as long as you are not obstructing users from other side road"
Is this statement
a. True b. False c. 50:50

My answer was: b
5. is sign like this ---->Hosur
^
| Bangalore
<-------- Mysore

a. Advance destination designation b. Destination designation c. Direction Designation

My answer was: c

6. If there is a sign like "Right turn prohibited". Then sign like "U turn prohibited" is implicit?
a. True b. False c.

My answer was: a

7. Find odd man out in below list
a. Median b. Round about c. Cross roads
b. didn't know what median is
8.If yellow light is flashing, you will slow down and
a. stop b. yield traffic c.


9.When the vehicle infront of you gave a signal to you to over take. then, what will you do.

a. accelerate and increase speed and over take the vehicle and turn left
b. slow down
c.

my answer is: a


NOTE: Needless to say that I failed the exam. :)

Thursday, July 17, 2008

Strange google search error


I got above error when I did simple Google search. I don't know why this happened? Does any one have any clue?

But I found it really weird and annoying.

Wednesday, July 09, 2008

Bored at work?

Here is the solution given by my colleague.

You got bored while working and want a quick relaxation with an entertainment.
No need to open orkut. No need to open youtube or what ever.
Just look at the faces of other people around you. and look at their expressions. It will be so funny. :) and so you will be relaxed. :)

Tuesday, July 01, 2008

Seems like today is all bad news day

Came across this link
and I actually started SIP and ULIP in 2006. :((

The most funniest/embarassing event happened today

I was chatting in parallel with my manager and another friend. During this, I typed a message to my manager thinking it is my friend's window. :((
It was in Telugu.

He couldn't understand even a single bit and he said "That's horrible.".

:(( :(( I don't know why I did this. :((

IITs soon may become other normal Govt colleges

came across this link recently. Really, it is a great job by government. Sooner, IITs become at par with other colleges (may be much less than that) and loose their value for sure.

Monday, June 02, 2008

Hurray!!!

Recently, when I went to metro. The security person at the entrance stopped me and said "Under 18 are not allowed". :))

I was so happy given people during marriage functions assuming me as a married girl with a kid.

No Smoking in public places: will it be strictly followed?

This news says, smoking is completely banned in workplaces. And, if some one violate this, the owner, proprietor, manager will be fined.

Now, coming to the reality, I remember seeing a "No Smoking" board in a BMTC bus where the driver was smoking. :))Now, whom should we report?

Again, when I went to a movie theatre in my home town. It was written at the outside of theater that "Smoking is prohibited inside theater and some other conditions". It was written by the town police and also said, if some one violates, they will be fined.
These people(Police) are very clever. They have written these rules but didn't give any contact number on which we can complain. So, when we went inside the theater, people were happily smoking and we had to bear that. :(

Tuesday, May 20, 2008

Plain Dosa Vs Sada Dosa

Yesterday, I went to a hotel in Bangalore and was giving my order. I said "One Sada Dosa". He promptly replied in Kannada saying "No. we don't have sada dosa. We have plain dosa, masala dosa, set dosa". :))

Tuesday, May 06, 2008

Google Aap ki bhasha mein

Google launched translator for Indian local languages(right now only for Hindi). You can check it out at
http://www.google.com/translate_t
It is simply awesome.

On lighter note, when I tried to use this over my blog, I found it funny. :)

Below was the conversation between my cousins. One has just finished his 2nd std and another finished his 10th std.

10th Std Cousin: ee roju chatrapati movie. but, nuvvu already chusesavu kada? (Today movie "Chatrapati" is showing in one of the channels. But, you watched it already. isn't it?

2nd Std Cousin: aa. Kani, nenu marchipoyintanu kada. (Ya. But, I might have forgotten right.)


Another conversation:
We all thought of going for a movie. So, I want to find out the timings for the show. So, I asked my 2nd std cousin who is a movie addict regarding show timings. So, my father had asked this boy "You frequently watch movies in theater right?". So, for this, this kid replies "Ledu. ippudu manesa. (No. I left it now.)".