Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Madhumitha Baskaran

Ranch Hand
+ Follow
since Feb 27, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Madhumitha Baskaran


log4j.rootCategory=debug,stdout1

# A1 is set to be a LF5Appender which outputs to a swing
# logging console.

log4j.appender.stdout1=org.apache.log4j.FileAppender
log4j.appender.stdout1.File=SampleLogFile
log4j.appender.stdout1.layout=org.apache.log4j.PatternLayout

This is how I had log4j file.

My primary intent of using log file is to track all the activities happening in a web page. What would you suggest for that?
6 years ago
JSP
I am trying to use Logging in JSP pages.

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>

<%@ page import="org.apache.log4j.Logger" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%

Logger log1=Logger.getLogger(this.getClass());

log1.info("Information");
log1.debug("Hello");
%>
<%= new String("Hello") %>

<% %>
</body>
</html>

Still I dont see any error . I dont see log file also getting generated. Can you please help?
6 years ago
JSP
I have checked Lucene's way of indexing files. But I would need to index key value pairs. Like I have many (word,sentence) combinations in a single file or few number of files. Most of the cases, it is in the single file.

I would like to search the sentence based on the word which I use for searching. What's the mechanism that I need to use with Java?

Something similar to Sequence file in Hadoop. Without parsing through entire data, we should be able to get the value for every key available.
7 years ago
Hi,

I am new to Hive. I have Hadoop running on 3 nodes one being the master. Please let me know if I have to install Hive on all the three nodes or just the master node.

Thanks,
Madhu
7 years ago
Hello,

I have configured Hadoop on a single node and pseudo node. I am expected to configure hadoop on 3 node. But I saw components being installed like

Hadoop Master
Hadoop Cluster- Data Nodes + Region Server
Monitoring – Ganglia
Zookeeper


I have seen apache hadoop installation folder as in a single tar file only. What's the difference? Any tutorials would be helpful.
7 years ago
I also see that

DFS used 100%
DFS remaining 0%

Is it causing any issue here?

I have more space left in my C drive but
7 years ago
Hi,

I have configured Hadoop for Windows Cygwin. I guess configuration is successful. But when I start dfs or mapred,
I get errors like

/usr/local/hadoop/bin/hadoop-daemon.sh: line 30: pwd: Write error Bad file descriptor
/usr/local/hadoop/bin/hadoop-deamon.sh: line 35: /hadoop-config.sh: No such file or directory
/usr/local/hadoop/bin/hadoop-daemon.sh: line 38: /slaves.sh: No such file or directory

Sometimes its getting started.

If I run bin/hadoop , it is hanging. It is not starting at all.

If I run bin/hadoop hadoop-test.jar, it says "Could be replicated to 0 nodes instead of 1"

Thanks,
Madhu
7 years ago
I have a requirement in hadoop and I am not able to get it right. I have to execute a UNIX script inside hadoop program and whatever is being echoed by UNIX scripts should be obtained in the hadoop program as output from Unix script. How will it be possible?

In ordinary JAVA program, I am able to execute JAVA program and get the output of unix script. But same is not working in hadoop. Can you please help?
7 years ago
I am trying to call a Unix script from a Java program using Runtime.exec(). Whatever is being echoed in Unix script should be captured in Java program. I have tried to use getInputStream. It is not working. Can you please help. ?

Thanks,
Madhu
7 years ago
Did you get solution for this? I have the same problem. Please help
I want to connect to Remedy database (AR System ODBC) from my Java program. I am not able to find the exact driver for connecting to this database. can you please help?

Thanks,
Madhu
I wanted some string match algorithm like Boyer moore algorithm. I just wanted to know if index of or regex functions use any of the standard string match algorithm. Can you help me with naming any easy string match algorithm. Boyer moore algorithm is so complex considering that I have less time. Please help
8 years ago
What algorithms are used by indexof() or regex in java.Please tell me.

I am looking for 2 easy algorithms to implement string match. Can you suggest that also.

As tomorrow is my project deadline, I am not able to understand complex algorithms easily.

Please help.
8 years ago
Hi,

I want to implement GREP. It is enough if I could find if the search string is available in the text. I am not able to understand Boyer-Moore algorithm. As it is the last minute for my project submission, I am not able to spend time understanding Boyer moore algorithm. Can you suggest some other easy algorithm? It will be better if it is quite efficient as well.

Thanks,
Madhumitha
8 years ago
I have an Iterator object alone. I dont have access to collections. Its difficult for me to do sorting when I have only Iterator.

I want to parse thro using Iterator and move the values to an Array which will help me to sort. But I am not able to find out number of values which will be available(necessary to allocate memory). I could think of parsing through Iterator and finding the length before I allocate memory. But it is not optimal solution. Any other suggestions?

As I have project deadline coming up soon, Please help me.
8 years ago