Re: JDBC based access to RDD

2016-02-20 Thread Shyam Sarkar
JdbcRDD.scala code is under the source code directory
 spark/core/src/main/scala/org/apache/spark/rdd

Thanks.

On Sat, Feb 20, 2016 at 11:51 AM, Shyam Sarkar <ssarkarayushnet...@gmail.com
> wrote:

> I was going through the scala code implementing RDD in Spark 1.6 source
> code and I found JdbcRDD functions defined for JDBC
> based access to RDD data.  I want to see some example code how to use such
> functions.
>
> Thanks,
>
>
>
>
> On Thu, Feb 18, 2016 at 2:43 PM, Mich Talebzadeh <m...@peridale.co.uk>
> wrote:
>
>> Can you please clarify your point
>>
>>
>>
>> Do you mean using JDBC to get data from other databases into Spark
>>
>>
>>
>>
>>
>> val s = HiveContext.load("jdbc",
>>
>> Map("url" -> _ORACLEserver,
>>
>> "dbtable" -> "table”,
>>
>> "user" -> _username,
>>
>> "password" -> _password))
>>
>>
>>
>> HTH
>>
>>
>>
>> Dr Mich Talebzadeh
>>
>>
>>
>> LinkedIn * 
>> https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
>> <https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>*
>>
>>
>>
>> http://talebzadehmich.wordpress.com
>>
>>
>>
>> NOTE: The information in this email is proprietary and confidential. This
>> message is for the designated recipient only, if you are not the intended
>> recipient, you should destroy it immediately. Any information in this
>> message shall not be understood as given or endorsed by Peridale Technology
>> Ltd, its subsidiaries or their employees, unless expressly so stated. It is
>> the responsibility of the recipient to ensure that this email is virus
>> free, therefore neither Peridale Technology Ltd, its subsidiaries nor their
>> employees accept any responsibility.
>>
>>
>>
>>
>>
>> *From:* Shyam Sarkar [mailto:ssarkarayushnet...@gmail.com]
>> *Sent:* 18 February 2016 22:36
>> *To:* user@spark.apache.org
>> *Subject:* JDBC based access to RDD
>>
>>
>>
>> Is there any good code example for JDBC based access to RDD ?
>>
>> Thanks.
>>
>
>


JDBC based access to RDD

2016-02-18 Thread Shyam Sarkar
Is there any good code example for JDBC based access to RDD ?
Thanks.


Re: I want to subscribe to mailing lists

2016-02-12 Thread Shyam Sarkar
Hello,

I subscribed to both Spark-user and Spark-dev with confirmation replies.
So far I did not get any e-mails from any users/contributor(s).
I am curious if the e-mails are going somewhere else or will come  to my
gmail address ssarkarayushnet...@gmail.com .

Thanks,
S. Sarkar


On Thu, Feb 11, 2016 at 4:04 PM, Josh Elser <els...@apache.org> wrote:

> No, you need to send to the subscribe address as that community page
> instructs:
>
> mailto:user-subscr...@spark.apache.org
>
> and
>
> mailto:dev-subscr...@spark.apache.org
>
> Shyam Sarkar wrote:
>
>> Do I have @apache.org e-mail address ?  I am getting following error
>> when\
>> I send from ssarkarayushnet...@gmail.com address:
>>
>> mailer-dae...@apache.org
>>
>> to me
>> Hi. This is the qmail-send program at apache.org.
>> I'm afraid I wasn't able to deliver your message to the following
>> addresses.
>> This is a permanent error; I've given up. Sorry it didn't work out.
>>
>> <u...@spark.apache.org>:
>> Must be sent from an @apache.org address or a subscriber address or an
>> address in LDAP.
>>
>> Thanks.
>>
>> On Thu, Feb 11, 2016 at 11:35 AM, Matthias J. Sax<mj...@apache.org>
>> wrote:
>>
>> https://spark.apache.org/community.html
>>>
>>> On 02/11/2016 08:34 PM, Shyam Sarkar wrote:
>>>
>>>> u...@spark.apache.org
>>>>
>>>> d...@spark.apache.org
>>>>
>>>>
>>>
>>


Re: I want to subscribe to mailing lists

2016-02-12 Thread Shyam Sarkar
Yes I did.  Anyway I am getting some e-mails now from users.
Regards.

On Fri, Feb 12, 2016 at 12:30 PM, Josh Elser <els...@apache.org> wrote:

> They will come to the address which you used to send the subscribe
> requests. I think the automated response tells you the address it is using.
>
> Did you follow the directions in the automated reply to the subscribe
> message and confirm your request to subscribe?
>
>
> Shyam Sarkar wrote:
>
>> Hello,
>>
>> I subscribed to both Spark-user and Spark-dev with confirmation replies.
>> So far I did not get any e-mails from any users/contributor(s).
>> I am curious if the e-mails are going somewhere else or will come  to my
>> gmail address ssarkarayushnet...@gmail.com .
>>
>> Thanks,
>> S. Sarkar
>>
>>
>> On Thu, Feb 11, 2016 at 4:04 PM, Josh Elser<els...@apache.org>  wrote:
>>
>> No, you need to send to the subscribe address as that community page
>>> instructs:
>>>
>>> mailto:user-subscr...@spark.apache.org
>>>
>>> and
>>>
>>> mailto:dev-subscr...@spark.apache.org
>>>
>>> Shyam Sarkar wrote:
>>>
>>> Do I have @apache.org e-mail address ?  I am getting following error
>>>> when\
>>>> I send from ssarkarayushnet...@gmail.com address:
>>>>
>>>> mailer-dae...@apache.org
>>>>
>>>> to me
>>>> Hi. This is the qmail-send program at apache.org.
>>>> I'm afraid I wasn't able to deliver your message to the following
>>>> addresses.
>>>> This is a permanent error; I've given up. Sorry it didn't work out.
>>>>
>>>> <u...@spark.apache.org>:
>>>> Must be sent from an @apache.org address or a subscriber address or an
>>>> address in LDAP.
>>>>
>>>> Thanks.
>>>>
>>>> On Thu, Feb 11, 2016 at 11:35 AM, Matthias J. Sax<mj...@apache.org>
>>>> wrote:
>>>>
>>>> https://spark.apache.org/community.html
>>>>
>>>>> On 02/11/2016 08:34 PM, Shyam Sarkar wrote:
>>>>>
>>>>> u...@spark.apache.org
>>>>>>
>>>>>> d...@spark.apache.org
>>>>>>
>>>>>>
>>>>>>
>>


Re: I want to subscribe to mailing lists

2016-02-11 Thread Shyam Sarkar
Do I have @apache.org e-mail address ?  I am getting following error when\
I send from ssarkarayushnet...@gmail.com address:

mailer-dae...@apache.org

to me
Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<u...@spark.apache.org>:
Must be sent from an @apache.org address or a subscriber address or an
address in LDAP.

Thanks.

On Thu, Feb 11, 2016 at 11:35 AM, Matthias J. Sax <mj...@apache.org> wrote:

> https://spark.apache.org/community.html
>
> On 02/11/2016 08:34 PM, Shyam Sarkar wrote:
> > u...@spark.apache.org
> >
> > d...@spark.apache.org
> >
>
>


I want to subscribe to mailing lists

2016-02-11 Thread Shyam Sarkar
u...@spark.apache.org

d...@spark.apache.org


Building Hive using Eclipse on PC

2011-04-21 Thread Shyam Sarkar
Hello,

I used Eclipse to get Hive through SVN (on my PC) following instructions at: 
http://hadoop.apache.org/ .

However, I cannot build Hive through Eclipse (not getting 'Build Project').  Is 
there Wiki anywhere about 'Build Hive' ?  Can anyone help ?

Thanks,
S. Sarkar



Syntax and Semantics for Continuous queries in Hive

2010-08-06 Thread Shyam Sarkar
Hello,

I am curious whether large streaming data can be queried by syantax and 
semantics of continuous queries inside Hive as defined in Streams Databases 
(e.g. StreamBase, Coral8 etc.).  Continuous queries are essential for real-time 
enterprise, log data and many other applications.

Thanks,
Shyam Sarkar



  



Syntax and Semantics for Continuous queries in Hive

2010-08-06 Thread Shyam Sarkar
Hello,

I am curious whether large streaming data can be queried by syantax and 
semantics of continuous queries inside Hive as defined in Streams Databases 
(e.g. StreamBase, Coral8 etc.).  Continuous queries are essential for real-time 
enterprise, log data and many other applications.

Thanks,
Shyam Sarkar



  



Can I specify a query in a test to see execution trace?

2009-03-17 Thread Shyam Sarkar

Hello,

Is there a simple test where I can specify a query and see the execution trace 
under Eclipse Debug mode? Is there any test that interactively asks for a query?


Thanks,
shyam_sar...@yahoo.com


  


Call sequence

2009-03-11 Thread Shyam Sarkar

Hello,

I am trying to understand the call sequence of Java classes from the top level 
(command processor). I can see Parser and Lexer generated by Antlr. Can someone 
please help me on the call sequence ?  Where is the front level command 
processor that collects a query as a string and then calls parser?

thanks,
shyam_sar...@yahoo.com


  


Re: Call sequence

2009-03-11 Thread Shyam Sarkar

Thank you. 


--- On Wed, 3/11/09, Prasad Chakka pra...@facebook.com wrote:

 From: Prasad Chakka pra...@facebook.com
 Subject: Re: Call sequence
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org, 
 shyam_sar...@yahoo.com shyam_sar...@yahoo.com
 Date: Wednesday, March 11, 2009, 3:11 PM
 Hi Shyam,
 
 I find Eclipse especially useful for these kind of things.
 Follow the instructions at
 http://wiki.apache.org/hadoop/Hive/GettingStarted/EclipseSetup
 and run a unit test in debug mode and observe the stack.
 
 Thanks,
 Prasad
 
 
 
 From: Ashish Thusoo athu...@facebook.com
 Reply-To: hive-dev@hadoop.apache.org
 Date: Wed, 11 Mar 2009 15:08:13 -0700
 To: hive-dev@hadoop.apache.org,
 shyam_sar...@yahoo.com
 Subject: RE: Call sequence
 
 That should be Driver.java. Look at the run() method. That
 calls ParseDriver.parse() to get the AST. And them
 sem.analyze() to do semantic analysis, optimization and plan
 generation. Finally it goes through the Task list and runs
 the tasks according to the dependencies.
 
 Ashish
 
 -Original Message-
 From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com]
 Sent: Wednesday, March 11, 2009 2:49 PM
 To: hive-dev@hadoop.apache.org
 Subject: Call sequence
 
 
 Hello,
 
 I am trying to understand the call sequence of Java classes
 from the top level (command processor). I can see Parser and
 Lexer generated by Antlr. Can someone please help me on the
 call sequence ?  Where is the front level command processor
 that collects a query as a string and then calls parser?
 
 thanks,
 shyam_sar...@yahoo.com


  


Please inspect TIMESTAMP design doc

2009-03-10 Thread Shyam Sarkar

All,

Please inspect and leave some comments on TIMESTAMP design doc (mainly
created from MySQL 6.0 spec). TIMESTAMP implementation can have impact on
other parts of Hive code. So please let me know which specific syntax can be 
initially implemented.

Thanks,
shyam_sar...@yahoo.com



  


RE: Please check grammar for TIMESTAMP

2009-03-09 Thread Shyam Sarkar

Dear Ashish,

Thanks for the comment. I found the following things from MySQL 6.0 ::

(1) Inside CREATE TABLE, TIMESTAMP does not have any format. It is treated like 
a primitive type (string).

(2) Inside SELECT clause, TIMESTAMP(MMDDHHMMSS) is called as a routine with 
format information for output spec. 

===  MySQL 6.0 function ===
TIMESTAMP(expr), TIMESTAMP(expr1,expr2) 
With a single argument, this function returns the date or datetime expression 
expr as a datetime value. With two arguments, it adds the time expression expr2 
to the date or datetime expression expr1 and returns the result as a datetime 
value. 
mysql SELECT TIMESTAMP('2003-12-31');
- '2003-12-31 00:00:00'
mysql SELECT TIMESTAMP('2003-12-31 12:00:00','12:00:00');
- '2004-01-01 00:00:00'
===

As a result, we have to define TIMESTAMP as primitive type as well as a complex 
type with format information.  I have to upgrade the grammar after further 
inspection. I am going to add a basic design document to JIRA.

Please provide suggestions.

Thanks,
Shyam


--- On Mon, 3/9/09, Ashish Thusoo athu...@facebook.com wrote:

 From: Ashish Thusoo athu...@facebook.com
 Subject: RE: Please check grammar for TIMESTAMP
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org
 Date: Monday, March 9, 2009, 2:52 PM
 One immediate issue is that the format string is a lexical
 token, so a string of that format will not conform to the
 grammar at places where a string literal is expected. A
 better approach is to treat the format as a stringliteral
 and then do the format checks at the typecheck and semantic
 analysis time.
 
 Ashish 
 
 -Original Message-
 From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com] 
 Sent: Sunday, March 08, 2009 7:16 AM
 To: hive-dev@hadoop.apache.org
 Subject: Please check grammar for TIMESTAMP
 
 Hi Zheng and others,
 
 Could you please check Hive.g grammar changes for TIMESTAMP
 (See the comments with // Change by Shyam)?
 Please review and let me know your feedback. I shall write
 a short design doc later for review after these short
 exchanges.
 
 Thanks,
 shyam_sar...@yahoo.com


  


Please check grammar for TIMESTAMP

2009-03-08 Thread Shyam Sarkar
Hi Zheng and others,

Could you please check Hive.g grammar changes for TIMESTAMP (See the comments 
with // Change by Shyam)?
Please review and let me know your feedback. I shall write a short design doc 
later for review after these short exchanges.

Thanks,
shyam_sar...@yahoo.com


  grammar Hive;

options
{
output=AST;
ASTLabelType=CommonTree;
backtrack=true;
k=1;
}
 
tokens {
TOK_INSERT;
TOK_QUERY;
TOK_SELECT;
TOK_SELECTDI;
TOK_SELEXPR;
TOK_FROM;
TOK_TAB;
TOK_PARTSPEC;
TOK_PARTVAL;
TOK_DIR;
TOK_LOCAL_DIR;
TOK_TABREF;
TOK_SUBQUERY;
TOK_DESTINATION;
TOK_ALLCOLREF;
TOK_COLREF;
TOK_FUNCTION;
TOK_FUNCTIONDI;
TOK_WHERE;
TOK_OP_EQ;
TOK_OP_NE;
TOK_OP_LE;
TOK_OP_LT;
TOK_OP_GE;
TOK_OP_GT;
TOK_OP_DIV;
TOK_OP_ADD;
TOK_OP_SUB;
TOK_OP_MUL;
TOK_OP_MOD;
TOK_OP_BITAND;
TOK_OP_BITNOT;
TOK_OP_BITOR;
TOK_OP_BITXOR;
TOK_OP_AND;
TOK_OP_OR;
TOK_OP_NOT;
TOK_OP_LIKE;
TOK_TRUE;
TOK_FALSE;
TOK_TRANSFORM;
TOK_EXPLIST;
TOK_ALIASLIST;
TOK_GROUPBY;
TOK_ORDERBY;
TOK_CLUSTERBY;
TOK_DISTRIBUTEBY;
TOK_SORTBY;
TOK_UNION;
TOK_JOIN;
TOK_LEFTOUTERJOIN;
TOK_RIGHTOUTERJOIN;
TOK_FULLOUTERJOIN;
TOK_LOAD;
TOK_NULL;
TOK_ISNULL;
TOK_ISNOTNULL;
TOK_TINYINT;
TOK_SMALLINT;
TOK_INT;
TOK_BIGINT;
TOK_BOOLEAN;
TOK_FLOAT;
TOK_DOUBLE;
TOK_DATE;
TOK_DATETIME;
TOK_TIMESTAMP;
TOK_STRING;
TOK_LIST;
TOK_MAP;
TOK_CREATETABLE;
TOK_DESCTABLE;
TOK_ALTERTABLE_RENAME;
TOK_ALTERTABLE_ADDCOLS;
TOK_ALTERTABLE_REPLACECOLS;
TOK_ALTERTABLE_ADDPARTS;
TOK_ALTERTABLE_DROPPARTS;
TOK_ALTERTABLE_SERDEPROPERTIES;
TOK_ALTERTABLE_SERIALIZER;
TOK_ALTERTABLE_PROPERTIES;
TOK_MSCK;
TOK_SHOWTABLES;
TOK_SHOWPARTITIONS;
TOK_CREATEEXTTABLE;
TOK_DROPTABLE;
TOK_TABCOLLIST;
TOK_TABCOL;
TOK_TABLECOMMENT;
TOK_TABLEPARTCOLS;
TOK_TABLEBUCKETS;
TOK_TABLEROWFORMAT;
TOK_TABLEROWFORMATFIELD;
TOK_TABLEROWFORMATCOLLITEMS;
TOK_TABLEROWFORMATMAPKEYS;
TOK_TABLEROWFORMATLINES;
TOK_TBLSEQUENCEFILE;
TOK_TBLTEXTFILE;
TOK_TABLEFILEFORMAT;
TOK_TABCOLNAME;
TOK_TABLELOCATION;
TOK_PARTITIONLOCATION;
TOK_TABLESAMPLE;
TOK_TMP_FILE;
TOK_TABSORTCOLNAMEASC;
TOK_TABSORTCOLNAMEDESC;
TOK_CHARSETLITERAL;
TOK_CREATEFUNCTION;
TOK_EXPLAIN;
TOK_TABLESERIALIZER;
TOK_TABLEPROPERTIES;
TOK_TABLEPROPLIST;
TOK_TABTYPE;
TOK_LIMIT;
TOK_TABLEPROPERTY;
TOK_IFNOTEXISTS;
}


// Package headers
@header {
package org.apache.hadoop.hive.ql.parse;
}
@lexer::header {package org.apache.hadoop.hive.ql.parse;}


@members { 
  Stack msgs = new StackString();
}

@rulecatch {
catch (RecognitionException e) {
 reportError(e);
  throw e;
}
}
 
// starting rule
statement
: explainStatement EOF
| execStatement EOF
;

explainStatement
@init { msgs.push(explain statement); }
@after { msgs.pop(); }
: KW_EXPLAIN (isExtended=KW_EXTENDED)? execStatement - ^(TOK_EXPLAIN 
execStatement $isExtended?)
;

execStatement
@init { msgs.push(statement); }
@after { msgs.pop(); }
: queryStatementExpression
| loadStatement
| ddlStatement
;

loadStatement
@init { msgs.push(load statement); }
@after { msgs.pop(); }
: KW_LOAD KW_DATA (islocal=KW_LOCAL)? KW_INPATH (path=StringLiteral) 
(isoverwrite=KW_OVERWRITE)? KW_INTO KW_TABLE (tab=tabName) 
- ^(TOK_LOAD $path $tab $islocal? $isoverwrite?)
;

ddlStatement
@init { msgs.push(ddl statement); }
@after { msgs.pop(); }
: createStatement
| dropStatement
| alterStatement
| descStatement
| showStatement
| metastoreCheck
| createFunctionStatement
;

ifNotExists
@init { msgs.push(if not exists clause); }
@after { msgs.pop(); }
: KW_IF KW_NOT KW_EXISTS
- ^(TOK_IFNOTEXISTS)
;

createStatement
@init { msgs.push(create statement); }
@after { msgs.pop(); }
: KW_CREATE (ext=KW_EXTERNAL)? KW_TABLE ifNotExists? name=Identifier 
(LPAREN columnNameTypeList RPAREN)? tableComment? tablePartition? tableBuckets? 
tableRowFormat? tableFileFormat? tableLocation?
- {$ext == null}? ^(TOK_CREATETABLE $name ifNotExists? columnNameTypeList? 
tableComment? tablePartition? tableBuckets? tableRowFormat? tableFileFormat? 
tableLocation?)
- ^(TOK_CREATEEXTTABLE $name ifNotExists? 
columnNameTypeList? tableComment? tablePartition? tableBuckets? tableRowFormat? 
tableFileFormat? tableLocation?)
;

dropStatement
@init { msgs.push(drop statement); }
@after { msgs.pop(); }
: KW_DROP KW_TABLE Identifier  - ^(TOK_DROPTABLE Identifier)
;

alterStatement
@init { msgs.push(alter statement); }
@after { msgs.pop(); }
: alterStatementRename
| alterStatementAddCol
| alterStatementDropPartitions
| alterStatementAddPartitions
| alterStatementProperties
| alterStatementSerdeProperties
;

alterStatementRename
@init { msgs.push(rename statement); }
@after { msgs.pop(); }
: KW_ALTER KW_TABLE oldName=Identifier KW_RENAME KW_TO newName=Identifier 
- ^(TOK_ALTERTABLE_RENAME $oldName $newName)
;

alterStatementAddCol
@init { msgs.push(add column statement); }
@after { msgs.pop(); }
: KW_ALTER KW_TABLE Identifier (add=KW_ADD | replace=KW_REPLACE) KW_COLUMNS 
LPAREN 

Re: Please check grammar for TIMESTAMP

2009-03-08 Thread Shyam Sarkar

Yes there will be Timezone support. We shall follow MySQL 6.0 TIMESTAMP 
specification::

http://dev.mysql.com/doc/refman/6.0/en/timestamp.html

Thanks,
shyam_sar...@yahoo.com


--- On Sun, 3/8/09, Tim Hawkins tim.hawk...@bejant.com wrote:

 From: Tim Hawkins tim.hawk...@bejant.com
 Subject: Re: Please check grammar for TIMESTAMP
 To: hive-dev@hadoop.apache.org
 Date: Sunday, March 8, 2009, 7:22 AM
 Is there going to be any Timezone Support?, ie will the
 time-stamp be stored in a recognised standard such as UTC
 regardless of the actual time submitted, given that
 hive/hadoop tend to be used for log processing and reporting
 in many use cases, understanding the normalising  time-zone
 details may be nessacary, especially where you may have data
 sourced from multiple time zones.
 
 It may be worth considering this issue now as retrofitting
 it later may cause problems.
 
 On 8 Mar 2009, at 14:15, Shyam Sarkar wrote:
 
  Hi Zheng and others,
  
  Could you please check Hive.g grammar changes for
 TIMESTAMP (See the comments with // Change by Shyam)?
  Please review and let me know your feedback. I shall
 write a short design doc later for review after these short
 exchanges.
  
  Thanks,
  shyam_sar...@yahoo.com
  
 


  


TIMESTAMP type

2009-03-07 Thread Shyam Sarkar

Hello,

I inspected the grammar Hive.g and decided to create a new type for TIMESTAMP. 
TIMESTAMP is not a primitive type or list type or map type. It is a timestamp 
type of the form TIMESTAMP(MMDDHHMMSS) which is different from other types.

Please let me know if there is any other suggestions.

Thanks,
shyam_sar...@yahoo.com





  


Re: Need help on Hive.g and parser!

2009-02-18 Thread Shyam Sarkar
Thank you. I went through antlr. Just curious -- was there any comparison done 
between JavaCC and antlr ? How is the quality of code generated by antlr 
compared to JavaCC ? This could be an issue if in future we like to embed XML 
or java script inside Hive QL (not very important at this point).
Advanced SQL syntax embeds XML and Java scripts.

Thanks,
Shyam


--- On Tue, 2/17/09, Zheng Shao zsh...@gmail.com wrote:

 From: Zheng Shao zsh...@gmail.com
 Subject: Re: Need help on Hive.g and parser!
 To: hive-dev@hadoop.apache.org, shyam_sar...@yahoo.com
 Date: Tuesday, February 17, 2009, 10:01 PM
 We are using antlr.
 
 Basically, the rule checks the timestamp of
 HiveParser.java. If it's newer
 than Hive.g, then we don't need to regenerate
 HiveParse.java from Hive.g
 again.
 
 Zheng
 
 On Tue, Feb 17, 2009 at 12:15 PM, Shyam Sarkar
 shyam_sar...@yahoo.comwrote:
 
  Hello,
 
  Someone please explain the following build.xml spec
 for grammar build
  (required and not required) ::
 
 
 ===
 
  uptodate
 property=grammarBuild.notRequired
 srcfiles dir=
 ${src.dir}/org/apache/hadoop/hive/ql/parse
  includes=**/*.g/
 mapper type=merge
 
 to=${build.dir.hive}/ql/gen-java/org/apache/hadoop/hive/ql/parse/HiveParser.java/
   /uptodate
 
   target name=build-grammar
 unless=grammarBuild.notRequired
 echoBuilding Grammar
 ${src.dir}/org/apache/hadoop/hive/ql/parse/Hive.g
   /echo
 java classname=org.antlr.Tool
 classpathref=classpath fork=true
arg value=-fo /
arg
 
 value=${build.dir.hive}/ql/gen-java/org/apache/hadoop/hive/ql/parse
 /
arg
 value=${src.dir}/org/apache/hadoop/hive/ql/parse/Hive.g
 /
 /java
   /target
 
 =
 
  Also can someone tell me which parser generator is
 used? I used JavaCC
  in the past.
 
  Thanks,
  shyam_sar...@yahoo.com
 
 
 
 
 
 
 
 -- 
 Yours,
 Zheng


  


Need help on Hive.g and parser!

2009-02-17 Thread Shyam Sarkar
Hello,

Someone please explain the following build.xml spec for grammar build
(required and not required) ::

===

uptodate property=grammarBuild.notRequired
srcfiles dir= ${src.dir}/org/apache/hadoop/hive/ql/parse 
includes=**/*.g/
mapper type=merge 
to=${build.dir.hive}/ql/gen-java/org/apache/hadoop/hive/ql/parse/HiveParser.java/
  /uptodate

  target name=build-grammar unless=grammarBuild.notRequired
echoBuilding Grammar ${src.dir}/org/apache/hadoop/hive/ql/parse/Hive.g  
/echo
java classname=org.antlr.Tool classpathref=classpath fork=true
   arg value=-fo /
   arg 
value=${build.dir.hive}/ql/gen-java/org/apache/hadoop/hive/ql/parse /
   arg value=${src.dir}/org/apache/hadoop/hive/ql/parse/Hive.g /
/java
  /target
=

Also can someone tell me which parser generator is used? I used JavaCC
in the past.

Thanks,
shyam_sar...@yahoo.com



  


Server time zone !

2009-02-12 Thread Shyam Sarkar
Is there any 'Server's time zone' implementation inside Hive? For proper 
implementation of TIMESTAMP data type, this is necessay to translate from 
stored string type. I am focusing on MySQL 6.0 (with limited properties) for 
TIMESTAMP.

http://dev.mysql.com/doc/refman/6.0/en/timestamp.html

Thanks,
Shyam


  


Need LOCALTIMESTAMP ?

2009-02-11 Thread Shyam Sarkar
Hello,

Please help me to understand what I am going to implement for Timestamp. Do we 
need LOCALTIMESTAMP implementation? See the comparisons below::

=


LOCALTIMESTAMP
It's often important to get the value of current date and time. Below are the 
functions used to do that in the different implementations.

Standard The current timestamp (without time zone) is retrieved with the 
LOCALTIMESTAMP function which may be used as: 
SELECT LOCALTIMESTAMP ...
or
SELECT LOCALTIMESTAMP(precision) ...

Note that SELECT LOCALTIMESTAMP() ... is illegal: If you don't care about the 
precision, then you must not use any parenthesis.

If the DBMS supports the non-core time zone features (feature ID F411), then it 
must also provide the functions CURRENT_TIMESTAMP and 
CURRENT_TIMESTAMP(precision) which return a value of type TIMESTAMP WITH TIME 
ZONE. If it doesn't support time zones, then the DBMS must not provide a 
CURRENT_TIMESTAMP function.
 
PostgreSQL Follows the standard. 
Documentation
 
DB2 Doesn't have the LOCALTIMESTAMP function. 
Instead, it provides a special, magic value ('special register' in IBM 
language), CURRENT_TIMESTAMP (alias to 'CURRENT TIMESTAMP') which may be used 
as though it were a function without arguments. However, since DB2 doesn't 
provide TIMESTAMP WITH TIME ZONE support, the availability of CURRENT_TIMESTAMP 
could be said to be against the standard—at least confusing.

Documentation
 
MSSQL Doesn't have the LOCALTIMESTAMP function. 
Instead, it has CURRENT_TIMESTAMP which—however—doesn't return a value of 
TIMESTAMP WITH TIME ZONE, but rather a value of MSSQL's DATETIME type (which 
doesn't contain time zone information).

Documentation
 
MySQL Follows the standard. 
Documentation
 
Oracle Follows the standard. 
Informix On my TODO. 



Thanks,
shyam_sar...@yahoo.com







Datetime type in SQL standard

2009-02-11 Thread Shyam Sarkar
Following is the BNF for datetime type in SQL 2003::

datetime type::= 
 DATE 
 | TIME [ left paren time precision right paren ] [ with or 
without time zone ]
 | TIMESTAMP [ left paren timestamp precision right paren ] [ 
with or without time zone ]

Please let me know if we implement the standard completely or not.

Thanks,
shyam_sar...@yahoo.com



  


timestamp examples in standard SQL

2009-02-11 Thread Shyam Sarkar
Some examples with timestamp in SQL standard ::
==

Create Table

CREATE TABLE Stu_Table (
 Stu_Id varchar(2),
 Stu_Name varchar(10),
 Stu_Dob timestamp NOT NULL );
 

Insert Date Into Stu_Table

Now insert into statement is used to add the records or rows into a table 
'Stu_Table'.

Insert Into Stu_Table Values('1', 'Komal', '1984-10-27');
Insert Into Stu_Table Values('2', 'ajay', '1985-04-19');
Insert Into Stu_Table Values('3', 'Santosh', '1986-11-16');
 

Stu_Table

++--+-+
| Stu_Id | Stu_Name | Stu_Dob |
++--+-+
| 1  | Komal| 1984-10-27 00:00:00 |
| 2  | ajay | 1985-04-19 00:00:00 |
| 3  | Santosh  | 1986-11-16 00:00:00 |
++--+-+
 

Query

The given below query return you the list of records enlisted in the select 
statement. The Where clause restrict the select query and return you the 
records from stu_Dob column between '1984-01-01' And '1986-1-1'. 

Select * From Stu_Table
Where Stu_Dob Between '1984-01-01' And '1986-1-1';
 

Result

++--+-+
| Stu_Id | Stu_Name | Stu_Dob |
++--+-+
| 1  | Komal| 1984-10-27 00:00:00 |
| 2  | ajay | 1985-04-19 00:00:00 |
++--+-+
 



  


RE: Need LOCALTIMESTAMP ?

2009-02-11 Thread Shyam Sarkar
Hi Ashish,

Read about the latest TIMESTAMP implementation in MySQL 5.0 version and suggest 
::

http://dev.mysql.com/doc/refman/5.0/en/timestamp.html

Also please comment on the following MySQL 5.0 implementation semantics::

TIMESTAMP values are converted from the current time zone to UTC for storage, 
and converted back from UTC to the current time zone for retrieval. (This 
occurs only for the TIMESTAMP data type, not for other types such as DATETIME.) 
By default, the current time zone for each connection is the server's time.

Should we do the same thing?

Thanks,
shyam_sar...@yahoo.com



--- On Wed, 2/11/09, Ashish Thusoo athu...@facebook.com wrote:

 From: Ashish Thusoo athu...@facebook.com
 Subject: RE: Need LOCALTIMESTAMP ?
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org, 
 shyam_sar...@yahoo.com shyam_sar...@yahoo.com
 Date: Wednesday, February 11, 2009, 2:55 PM
 Hi Shyam,
 
 I think HIVE-192 is about the fact that there is no support
 for the timestamp type in Hive (or for that matter date and
 datetime types). In FB we are using strings to hold this
 information. 
 
 If you are planning to add a built in function like
 localtimestamp, then that should probably go into a
 different JIRA.
 
 We have tried to adhere to mysql way of doing things as we
 find more folks using it (at least in our company) and looks
 from your research that they are basically standards
 compliant. So my vote will be to go with mysql semantics and
 CURRENT_TIMESTAMP construct.
 
 Ashish
 
 
 -Original Message-
 From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com] 
 Sent: Wednesday, February 11, 2009 2:37 PM
 To: hive-dev@hadoop.apache.org
 Subject: Need LOCALTIMESTAMP ?
 
 Hello,
 
 Please help me to understand what I am going to implement
 for Timestamp. Do we need LOCALTIMESTAMP implementation? See
 the comparisons below::
 
 =
 
 
 LOCALTIMESTAMP
 It's often important to get the value of current date
 and time. Below are the functions used to do that in the
 different implementations.
 
 Standard The current timestamp (without time zone) is
 retrieved with the LOCALTIMESTAMP function which may be used
 as: 
 SELECT LOCALTIMESTAMP ...
 or
 SELECT LOCALTIMESTAMP(precision) ...
 
 Note that SELECT LOCALTIMESTAMP() ... is
 illegal: If you don't care about the precision, then you
 must not use any parenthesis.
 
 If the DBMS supports the non-core time zone features
 (feature ID F411), then it must also provide the functions
 CURRENT_TIMESTAMP and CURRENT_TIMESTAMP(precision) which
 return a value of type TIMESTAMP WITH TIME ZONE. If it
 doesn't support time zones, then the DBMS must not
 provide a CURRENT_TIMESTAMP function.
  
 PostgreSQL Follows the standard. 
 Documentation
  
 DB2 Doesn't have the LOCALTIMESTAMP function. 
 Instead, it provides a special, magic value ('special
 register' in IBM language), CURRENT_TIMESTAMP (alias to
 'CURRENT TIMESTAMP') which may be used as though it
 were a function without arguments. However, since DB2
 doesn't provide TIMESTAMP WITH TIME ZONE support, the
 availability of CURRENT_TIMESTAMP could be said to be
 against the standard-at least confusing.
 
 Documentation
  
 MSSQL Doesn't have the LOCALTIMESTAMP function. 
 Instead, it has CURRENT_TIMESTAMP which-however-doesn't
 return a value of TIMESTAMP WITH TIME ZONE, but rather a
 value of MSSQL's DATETIME type (which doesn't
 contain time zone information).
 
 Documentation
  
 MySQL Follows the standard. 
 Documentation
  
 Oracle Follows the standard. 
 Informix On my TODO. 
 
 
 
 Thanks,
 shyam_sar...@yahoo.com


  


RE: Implementing Timestamp (HIVE-192)

2009-02-10 Thread Shyam Sarkar
Thank you all. I am looking forward to your help to solve various issues.

Regards,
Shyam



--- On Tue, 2/10/09, Ashish Thusoo athu...@facebook.com wrote:

 From: Ashish Thusoo athu...@facebook.com
 Subject: RE: Implementing Timestamp (HIVE-192)
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org
 Date: Tuesday, February 10, 2009, 11:01 AM
 Go for it Shyam...
 
 All of us are available for help on this mailing list and
 we do hop onto the irc channel from time to time
 
 Ashish 
 
 -Original Message-
 From: Johan Oskarsson [mailto:jo...@oskarsson.nu] 
 Sent: Tuesday, February 10, 2009 2:06 AM
 To: hive-dev@hadoop.apache.org
 Subject: Re: Implementing Timestamp (HIVE-192)
 
 The ticket hasn't been commented on so I'm going to
 assume that nobody is working on it, so please do go ahead
 and have a go at it.
 
 As for who you should talk to, someone on this list should
 probably jump in, but the committers are a good start:
 http://hadoop.apache.org/hive/credits.html
 
 There's also an IRC channel where some of them pop in
 now and again:
 ##hive at irc.freenode.net
 
 I haven't worked with serde much so can't give any
 pointers where to start.
 
 /Johan
 
 Shyam Sarkar wrote:
  Hello,
  
  I like to go deeper into Hive code (starting from
 parser all the way to file system) by implementing a small
 feature first. I like to add code for timestamp
 implementation (HIVE-192). Is that ok to implement? Is there
 any suggestion?
  
  Also I like to know who should I talk to for new
 feature suggestions for implementations in future (Is
 someone the main architect!!)? What is the process involved?
  
  Please let me know.
  
  Regards,
  shyam_sar...@yahoo.com
  Shyam Sundar Sarkar,Ph.D.
  Founder
  AyushNet
  650-962-0900
  
  
  
 


  


HiveQL and SQL 2003

2009-02-06 Thread Shyam Sarkar
Hello,

I am curious if certain object and type definition features of SQL 2003 
standard can be implemented as part of HiveQL. It makes sense because hadoop 
database was designed as a non-SQL parallel database where operations are 
written in Java classes. 

Syntax and semantics for types and object packages within SQL syntax will make 
HiveQL much stronger.

Regards,
shyam_sar...@yahoo.com




  


RE: Eclipse run fails !!

2009-02-03 Thread Shyam Sarkar
Dear Ashish,

For the last few days I tried eclipse 3.4.1 with 0.17.2.1 version and got the 
same errors with run-run. Then I looked into bin/hive command and found that 
it could not create table in HDFS. The reason was that I could not create 
/user/hive/warehouse directory inside HDFS. It was using Linux FS.
This is why I switched to 0.19.0 where directories in HDFS can be created.

Could you please tell me which exact version of hadoop will work fine with 
eclipse runs ?  I want to get rid of errors in project itself (before any run).

Regards,
Shyam

--- On Tue, 2/3/09, Ashish Thusoo athu...@facebook.com wrote:

 From: Ashish Thusoo athu...@facebook.com
 Subject: RE: Eclipse run fails !!
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org, 
 shyam_sar...@yahoo.com shyam_sar...@yahoo.com
 Date: Tuesday, February 3, 2009, 11:38 AM
 Hi Shyam,
 
 We have not really tried the eclipse stuff for 0.19.0. Is
 it possible for you to use 0.17.0 for now, while we figure
 this out...
 
 Ashish
  
 -Original Message-
 From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com] 
 Sent: Tuesday, February 03, 2009 11:26 AM
 To: hive-dev@hadoop.apache.org
 Subject: Eclipse run fails !!
 
 Hello,
 
 I have hive project loaded inside eclipse 3.4.1 and hadoop
 0.19.0 is running in the background. I could create tables
 from bin/hive command.
 But when I try to run-run inside eclipse it says::
 
 Errors exist with required project(s):
 
 hive
 
 Proceed with launch ?
 
 and then it gives many errors.
 
 Can someone please tell me why there are errors in project
 hive ?  I followed all steps correctly from hive wiki.
 
 Regards,
 shyam_sar...@yahoo.com


  


Build fails for eclipse-templates

2009-02-03 Thread Shyam Sarkar
Hello,

I am a new developer for hive and hadoop. I downloaded hive and hadoop 0.17.2.1 
version to test inside eclipse but my test failed. I could not create directory 
inside HDFS of 0.17.2.1 version but I could do so using 0.19.0 version. So I 
wanted to try eclipse compile/test with 0.19.0 and downloaded hive again.

But now eclipse-templates build fails::
===

[ssar...@ayush2 hive]$ /usr/java/apache-ant-1.7.1/bin/ant eclipse-templates/ 
-Dhadoop.version=0.19.0
Buildfile: build.xml

BUILD FAILED
Target eclipse-templates/ does not exist in the project hive. 
===

Can someone tell me why the build fails with new hive checkouts ?

Regards,
shyam_sar...@yahoo.com





  


RE: Eclipse run fails !!

2009-02-03 Thread Shyam Sarkar
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at junit.framework.TestSuite.createTest(TestSuite.java:131)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.init(TestSuite.java:75)
at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at junit.framework.TestSuite.createTest(TestSuite.java:131)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.init(TestSuite.java:75)
at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.RuntimeException: Encountered throwable
at 
org.apache.hadoop.hive.ql.exec.TestExecDriver.clinit(TestExecDriver.java:113)
... 13 more
==

regards,
Shyam





--- On Tue, 2/3/09, Ashish Thusoo athu...@facebook.com wrote:

 From: Ashish Thusoo athu...@facebook.com
 Subject: RE: Eclipse run fails !!
 To: Shyam Sarkar shyam_sar...@yahoo.com, hive-dev@hadoop.apache.org 
 hive-dev@hadoop.apache.org
 Date: Tuesday, February 3, 2009, 1:46 PM
 Hi Shyam,
 
 I can certainly say that 0.17.0 should work with eclipse. I
 have been doing that for a while.
 
 Maybe we can concentrate on fixing why you are not able to
 create a table in hdfs. I am not sure why you could not
 create the /user/hive/warehouse directory in 0.17. Are you
 saying that
 
 hadoop dfs -mkdir /user/facebook/hive
 
 does not work for you? Can you send out the output when you
 run this command.
 
 Ashish
 
 PS: using -Dhadoop.versoion=0.17.0 for all the
 commands that are given in the wiki should make things work
 in eclipse. 
 
 -Original Message-
 From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com] 
 Sent: Tuesday, February 03, 2009 12:00 PM
 To: hive-dev@hadoop.apache.org; Ashish Thusoo
 Subject: RE: Eclipse run fails !!
 
 Dear Ashish,
 
 For the last few days I tried eclipse 3.4.1 with 0.17.2.1
 version and got the same errors with run-run. Then I
 looked into bin/hive command and found that it could not
 create table in HDFS. The reason was that I could not create
 /user/hive/warehouse directory inside HDFS. It was using
 Linux FS.
 This is why I switched to 0.19.0 where directories in HDFS
 can be created.
 
 Could you please tell me which exact version of hadoop will
 work fine with eclipse runs ?  I want to get rid of errors
 in project itself (before any run).
 
 Regards,
 Shyam
 
 --- On Tue, 2/3/09, Ashish Thusoo
 athu...@facebook.com wrote:
 
  From: Ashish Thusoo athu...@facebook.com
  Subject: RE: Eclipse run fails !!
  To: hive-dev@hadoop.apache.org
 hive-dev@hadoop.apache.org, 
  shyam_sar...@yahoo.com
 shyam_sar...@yahoo.com
  Date: Tuesday, February 3, 2009, 11:38 AM Hi Shyam,
  
  We have not really tried the eclipse stuff for 0.19.0.
 Is it possible 
  for you to use 0.17.0 for now, while we figure this
 out...
  
  Ashish
   
  -Original Message-
  From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com]
  Sent: Tuesday, February 03, 2009 11:26 AM
  To: hive-dev@hadoop.apache.org
  Subject: Eclipse run fails !!
  
  Hello,
  
  I have hive project loaded inside eclipse 3.4.1

Re: Need Help on Eclipse + JDK to load hive project !!

2009-01-31 Thread Shyam Sarkar
Would I lose any recent features if I do not use hadoop-0.19.0 version ?


--- On Sat, 1/31/09, Prasad Chakka pra...@facebook.com wrote:

 From: Prasad Chakka pra...@facebook.com
 Subject: Re: Need Help on Eclipse + JDK to load hive project !!
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org, 
 shyam_sar...@yahoo.com shyam_sar...@yahoo.com
 Date: Saturday, January 31, 2009, 11:52 AM
 I use Eclipse 3.4.0 (3.4.1 also works) with Java 6. Try the
 instruction from here
 http://wiki.apache.org/hadoop/Hive/GettingStarted/EclipseSetup
 
 I use hadoop-0.17.2.1 version instead of hadoop-0.19 since
 the former works well with running unit tests.
 
 
 
 From: Shyam Sarkar shyam_sar...@yahoo.com
 Reply-To: hive-dev@hadoop.apache.org,
 shyam_sar...@yahoo.com
 Date: Sat, 31 Jan 2009 11:46:35 -0800
 To: hive-dev@hadoop.apache.org
 Subject: Need Help on Eclipse + JDK to load hive project !!
 
 Hi,
 
 I have a linux box running Red Hat Linux 4. I tried with
 many eclipse and jdk versions but finally eclipse 3.2.1
 worked with jdk1.5 java run time. I could not load source
 files from hive into a project.
 
 COULD SOMEONE PLEASE TELL ME THE FOLLOWING ::
 
 (1) Is the version for eclipse + jdk fine for hive
 development ?
 (2) How to load the whole hive project onto eclipse ?
 
 Regards,
 shyam_sar...@yahoo.com


  


Re: Need Help on Eclipse + JDK to load hive project !!

2009-01-31 Thread Shyam Sarkar
I am getting following error for build ant package ::
=


[ssar...@ayush2 hive]$ /usr/java/apache-ant-1.7.1/bin/ant package 
-Dhadoop.version=hadoop-0.17.2.1
Buildfile: build.xml

deploy:

init:

download-ivy:

init-ivy:

settings-ivy:

resolve:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ 
::
:: loading settings :: file = /home/ssarkar/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: 
org.apache.hadoop.hive#common;work...@ayush2
[ivy:retrieve]  confs: [default]
[ivy:retrieve] :: resolution report :: resolve 231ms :: artifacts dl 0ms
-
|  |modules||   artifacts   |
|   conf   | number| search|dwnlded|evicted|| number|dwnlded|
-
|  default |   1   |   0   |   0   |   0   ||   0   |   0   |
-
[ivy:retrieve] 
[ivy:retrieve] :: problems summary ::
[ivy:retrieve]  WARNINGS
[ivy:retrieve]  module not found: hadoop#core;hadoop-0.17.2.1
[ivy:retrieve]   hadoop-resolver: tried
[ivy:retrieve]-- artifact hadoop#core;hadoop-0.17.2.1!hadoop.tar.gz(source):
[ivy:retrieve]
http://archive.apache.org/dist/hadoop/core/hadoop-hadoop-0.17.2.1/hadoop-hadoop-0.17.2.1.tar.gz
[ivy:retrieve]  ::
[ivy:retrieve]  ::  UNRESOLVED DEPENDENCIES ::
[ivy:retrieve]  ::
[ivy:retrieve]  :: hadoop#core;hadoop-0.17.2.1: not found
[ivy:retrieve]  ::
[ivy:retrieve] 
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/home/ssarkar/hive/build.xml:83: The following error occurred while executing 
this line:
/home/ssarkar/hive/build-common.xml:83: impossible to resolve dependencies:
resolve failed - see output for details

Total time: 1 second
[ssar...@ayush2 hive]$ 

--- On Sat, 1/31/09, Prasad Chakka pra...@facebook.com wrote:

 From: Prasad Chakka pra...@facebook.com
 Subject: Re: Need Help on Eclipse + JDK to load hive project !!
 To: hive-dev@hadoop.apache.org hive-dev@hadoop.apache.org, 
 shyam_sar...@yahoo.com shyam_sar...@yahoo.com
 Date: Saturday, January 31, 2009, 11:52 AM
 I use Eclipse 3.4.0 (3.4.1 also works) with Java 6. Try the
 instruction from here
 http://wiki.apache.org/hadoop/Hive/GettingStarted/EclipseSetup
 
 I use hadoop-0.17.2.1 version instead of hadoop-0.19 since
 the former works well with running unit tests.
 
 
 
 From: Shyam Sarkar shyam_sar...@yahoo.com
 Reply-To: hive-dev@hadoop.apache.org,
 shyam_sar...@yahoo.com
 Date: Sat, 31 Jan 2009 11:46:35 -0800
 To: hive-dev@hadoop.apache.org
 Subject: Need Help on Eclipse + JDK to load hive project !!
 
 Hi,
 
 I have a linux box running Red Hat Linux 4. I tried with
 many eclipse and jdk versions but finally eclipse 3.2.1
 worked with jdk1.5 java run time. I could not load source
 files from hive into a project.
 
 COULD SOMEONE PLEASE TELL ME THE FOLLOWING ::
 
 (1) Is the version for eclipse + jdk fine for hive
 development ?
 (2) How to load the whole hive project onto eclipse ?
 
 Regards,
 shyam_sar...@yahoo.com


  


Class Not found error

2009-01-20 Thread Shyam Sarkar
Hi,

I am following instructions for example wordcount version 2 execution on Hadoop 
installed
under Cygwin. The quick start example worked fine. But word count version 2 is 
giving following
error:

java.lang.ClassNotFoundException: org.myorg.WordCount
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:247)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:158)
 at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
 at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)

I checked all files many times in HDFS. They are all in there.

Please help..

shyam_sar...@yahoo.com






Null Pointer with Pattern file

2009-01-20 Thread Shyam Sarkar
Hi,

I was trying to run Hadoop wordcount version 2 example under Cygwin. I tried
without pattern.txt file -- It works fine.
I tried with pattern.txt file to skip some patterns, I get NULL POINTER
exception as follows::

09/01/20 12:56:16 INFO jvm.JvmMetrics: Initializing JVM Metrics with
processName=JobTracker, sessionId=
09/01/20 12:56:17 WARN mapred.JobClient: No job jar file set.  User classes
may not be found. See JobConf(Class) or JobConf#setJar(String).
09/01/20 12:56:17 INFO mapred.FileInputFormat: Total input paths to process
: 4
09/01/20 12:56:17 INFO mapred.JobClient: Running job: job_local_0001
09/01/20 12:56:17 INFO mapred.FileInputFormat: Total input paths to process
: 4
09/01/20 12:56:17 INFO mapred.MapTask: numReduceTasks: 1
09/01/20 12:56:17 INFO mapred.MapTask: io.sort.mb = 100
09/01/20 12:56:17 INFO mapred.MapTask: data buffer = 79691776/99614720
09/01/20 12:56:17 INFO mapred.MapTask: record buffer = 262144/327680
09/01/20 12:56:17 WARN mapred.LocalJobRunner: job_local_0001
java.lang.NullPointerException
 at org.myorg.WordCount$Map.configure(WordCount.java:39)
 at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
 at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:83)
 at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
 at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
 at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:83)
 at org.apache.hadoop.mapred.MapTask.run(MapTask.java:328)
 at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:138)
java.io.IOException: Job failed!
 at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1217)
 at org.myorg.WordCount.run(WordCount.java:114)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
 at org.myorg.WordCount.main(WordCount.java:119)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:165)
 at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
 at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)


Please tell me what should I do.

Thanks,
shyam.s.sar...@gmail.com


[linux-distros-dev] eclipse startup errror on linux

2009-01-15 Thread Shyam Sarkar
I installed eclipse and sourced config.ini but I get following error when
trying to run eclipse :

!SESSION 2009-01-15 10:32:39.133
---
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2009-01-15 10:32:39.638
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service.
Ensure that the org.eclipse.core.runtime bundle is resolved and started (see
config.ini).
   at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
   at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
   at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
---

Please tell me what shoudl I do ?

thanks,
shyam.s.sar...@gamail.com
___
linux-distros-dev mailing list
linux-distros-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/linux-distros-dev


ssh not found error

2008-09-04 Thread Shyam Sarkar
Hi,

I installed and re-installed Cygwin many times to correct this error.
But it never finds ssh to execute.

I installed Cygwin, and clicked on the desktop icon and got the command
window.  I then tried to execute ssh.

Please suggest why it does not find ssh at all.

Thanks,
Shyam Sarkar
[EMAIL PROTECTED]




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh not found error

2008-09-04 Thread Shyam Sarkar
Hello,

I executed cygcheck -s -r -f  cygcheck.out (there is no -w option)
and I am attaching cygcheck.out with this e-mail.

Please suggest why it does not find ssh on my installation.

Thanks,
Shyam Sarkar



- Original Message 
From: Shyam Sarkar [EMAIL PROTECTED]
To: cygwin@cygwin.com
Sent: Thursday, September 4, 2008 10:02:54 AM
Subject: ssh not found error

Hi,

I installed and re-installed Cygwin many times to correct this error.
But it never finds ssh to execute.

I installed Cygwin, and clicked on the desktop icon and got the command
window.  I then tried to execute ssh.

Please suggest why it does not find ssh at all.

Thanks,
Shyam Sarkar
[EMAIL PROTECTED]




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:      http://cygwin.com/problems.html
Documentation:        http://cygwin.com/docs.html
FAQ:                  http://cygwin.com/faq/


  

cygcheck.out
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: ssh not found error

2008-09-04 Thread Shyam Sarkar
Hi all,

I had 'ssh not found error' with my installation which I solved by selecting 
relevant
package to load. There are some related errors to connect to a remove linux box.
Now I have Xwin not found error. Also it is not finding startxwin.sh
file in /usr/X11R6/bin.

Can anyone help me on this ? Can someone tell me all the packages needed to run
Xwindows on a remote linux box ? If possible please tell me the steps.

Regards,
Shyam Sarkar

 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:      http://cygwin.com/problems.html
Documentation:        http://cygwin.com/docs.html
FAQ:                  http://cygwin.com/faq/




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh not found error

2008-09-04 Thread Shyam Sarkar
Never Mind. I solved it.



- Original Message 
From: Shyam Sarkar [EMAIL PROTECTED]
To: cygwin@cygwin.com
Sent: Thursday, September 4, 2008 2:22:08 PM
Subject: Re: ssh not found error

Hi all,

I had 'ssh not found error' with my installation which I solved by selecting 
relevant
package to load. There are some related errors to connect to a remove linux box.
Now I have Xwin not found error. Also it is not finding startxwin.sh
file in /usr/X11R6/bin.

Can anyone help me on this ? Can someone tell me all the packages needed to run
Xwindows on a remote linux box ? If possible please tell me the steps.

Regards,
Shyam Sarkar

 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:      http://cygwin.com/problems.html
Documentation:        http://cygwin.com/docs.html
FAQ:                  http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:      http://cygwin.com/problems.html
Documentation:        http://cygwin.com/docs.html
FAQ:                  http://cygwin.com/faq/




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Cursors are not available in MySQL 5.0

2005-01-04 Thread Shyam Sarkar

Hello,

I downloaded and installed MySQL 5.0.  But I could not run declare cursor 
features in 5.0.
Is the cursor implementation present in 5.0 ?

Thanks,
S. Sarkar
[EMAIL PROTECTED]




question about classpaths in tomcat run

2001-07-06 Thread Shyam Sarkar



Hello,

I specified wrapper.classpath in tomcat.properties 
file fora certain run and it could
not findmy classes. Then I stopped 
tomcat and set classpath to the same destination
directory and started tomcat in the same 
window. This time my program worked.

Any clarifications about these differences -- 
setting classpath in properties file as 
opposed to setting it directly before starting 
tomcat ?

Thanks.
[EMAIL PROTECTED]




Re: need help for rmi calls from tomcat 3.2.1

2001-07-03 Thread Shyam Sarkar



I tried that but still the problem is not 
solved. I wonder why RMI calls are not documented
anywhere in apache tomcat. There must be quite a 
lot of applications using RMI and IIOP
from tomcat JSP server. If anyone knows any 
solutions pls let me know.

[EMAIL PROTECTED]


  - Original Message - 
  From: 
  Francisco Areas 
  Guimaraes 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 02, 2001 5:10 PM
  Subject: Re: need help for rmi calls from 
  tomcat 3.2.1
  
  Assumming you installed tomcat in "c:\tomcat", 
  you have to copy the "getStart" directory to "c:\tomcat\webapps\ROOT", so it 
  would end up like this "c:\tomcat\webapps\ROOT\getStart". Now your url will 
  work.
  
  You just have to think that 
  "c:\tomcat\webapps\ROOT" is the physical address of "localhost:8080", got 
  it?
  
  []´s
  Francisco
  
----- Original Message - 
From: 
Shyam 
Sarkar 
To: [EMAIL PROTECTED] 

Sent: Monday, July 02, 2001 7:02 
PM
Subject: Re: need help for rmi calls 
from tomcat 3.2.1

No, I copied to a separate directory called 
getStart and accesing hello.html in that 
directory using http://loalhost:8080/getStart/hello.html.

Any suggestions ?

Thanks.
[EMAIL PROTECTED]


  - Original Message - 
  From: 
  Francisco 
  Areas Guimaraes 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 02, 2001 3:00 
  PM
  Subject: Re: need help for rmi calls 
  from tomcat 3.2.1
  
  Have you copied to "/webapps/ROOT" 
  ?
  
  Francisco
      
    - Original Message - 
From: 
Shyam 
Sarkar 
To: [EMAIL PROTECTED] 

Sent: Monday, July 02, 2001 6:43 
PM
Subject: need help for rmi calls 
from tomcat 3.2.1

I 
installed rmi example problem (Helloworld) in a directory called 
getStartunderC:\rmi\rmi. I can start the server and the 
client applet as described inthe trail.Next I started tomcat 
server and copied getStart under webapp directory.I started 
rmiregistry and then the server.I tried to open hello.html from a 
browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the 
resultmessage is 'blank' rather than 'Hello World'. I added 
the wrapper classpathetc.Any suggestions what is 
wrong.Regards.[EMAIL PROTECTED]


need help for rmi calls from tomcat 3.2.1

2001-07-02 Thread Shyam Sarkar



I installed rmi 
example problem (Helloworld) in a directory called 
getStartunderC:\rmi\rmi. I can start the server and the client 
applet as described inthe trail.Next I started tomcat server and copied 
getStart under webapp directory.I started rmiregistry and then the 
server.I tried to open hello.html from a browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the resultmessage 
is 'blank' rather than 'Hello World'. I added the wrapper 
classpathetc.Any suggestions what is 
wrong.Regards.[EMAIL PROTECTED]


Re: need help for rmi calls from tomcat 3.2.1

2001-07-02 Thread Shyam Sarkar



No, I copied to a separate directory called 
getStart and accesing hello.html in that 
directory using http://loalhost:8080/getStart/hello.html.

Any suggestions ?

Thanks.
[EMAIL PROTECTED]


  - Original Message - 
  From: 
  Francisco Areas 
  Guimaraes 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 02, 2001 3:00 PM
  Subject: Re: need help for rmi calls from 
  tomcat 3.2.1
  
  Have you copied to "/webapps/ROOT" ?
  
  Francisco
  
- Original Message - 
From: 
Shyam 
Sarkar 
To: [EMAIL PROTECTED] 

Sent: Monday, July 02, 2001 6:43 
PM
Subject: need help for rmi calls from 
tomcat 3.2.1

I installed 
rmi example problem (Helloworld) in a directory called 
getStartunderC:\rmi\rmi. I can start the server and the client 
applet as described inthe trail.Next I started tomcat server and 
copied getStart under webapp directory.I started rmiregistry and then 
the server.I tried to open hello.html from a browser with 
urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the 
resultmessage is 'blank' rather than 'Hello World'. I added the 
wrapper classpathetc.Any suggestions what is 
wrong.Regards.[EMAIL PROTECTED]


Re: Need help on win2000 soap run with tomcat

2001-06-05 Thread Shyam Sarkar



Hi,

I have all the correct classpath defined. 
Still getting class not found exeception. 
Removed all parsers other than xerces 1.4.0 from 
tomcat classpath.
Need more help.

-error listed 
below---
C:\xml\soap\soap-2_1\samples\addressbookjava 
org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
deploy DeploymentDescriptor.xml

C:\xml\soap\soap-2_1\samples\addressbookjava 
org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
listDeployed Services: 
urn:AddressFetcher

C:\xml\soap\soap-2_1\samples\addressbookset 
CLASSPATHCLASSPATH=..\..;.;C:\xml\xerces\xerces-1_3_1\xerces.jar;C:\xml\soap\soap-2_1\lib\soap.jar;C:\xml\javamail-1.2\mail.jar;C:\xml\jaf-1.0.1\activation.jar;C:\jdk1.3\lib\j2ee.jar;\;

C:\xml\soap\soap-2_1\samples\addressbookjava 
samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter 
"John B. Good"Generated fault: Fault Code = 
SOAP-ENV:Client Fault String = deployment error in SOAP service 
'urn:AddressFetcher': class name 'samples.addressbook.Address' could not be 
resolved: samples.addressbook.Address

---

  - Original Message - 
  From: 
  Uzay 
  Takaoglu 
  To: '[EMAIL PROTECTED]' 
  Sent: Monday, June 04, 2001 3:45 PM
  Subject: RE: Need help on win2000 soap 
  run with tomcat
  
  Check thelist below:
  
  1.Make sureyou set soap's installation dir under your 
  "classpath"?
  2. 
  Make sure the Xercer's path is the first thing under your 
  classpath
  3. 
  By default Tomcat usestwo jar files jaxp.jarand parser.jar, 
  removethese jar filesfrom tomcat_installation_dir\lib 
  folder
  
  
  Uzay TakaogluSr. Software 
  Engineer 
  Simplexis   eCommerce 
  for the Business of Education www.simplexis.com640 2nd 
  Street San Francisco, CA 94107 
  
  
-Original Message-----From: Shyam Sarkar 
[mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 1:45 
PMTo: [EMAIL PROTECTED]Subject: Re: Need help 
on win2000 soap run with tomcat
Hi,

I did replace xerces 1.3.1 with 1.4.0. and 
could deploy and list but getting other problems for methods.
Please help me to solve it:

error reported 
below-

C:\xml\soap\soap-2_1java 
org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
deploy 
C:\xml\soap\soap-2_1\samples\addressbook\DeploymentDescriptor.xml

C:\xml\soap\soap-2_1java 
org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
listDeployed Services: 
urn:AddressFetcher

C:\xml\soap\soap-2_1java 
samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter 
"John B. Good"Generated fault: Fault Code = 
SOAP-ENV:Client Fault String = deployment error in SOAP service 
'urn:AddressFetcher': class name 'samples.addressbook.Address' could not be 
resolved: samples.addressbook.Address
---

  - Original Message - 
  From: 
  Matthew J. Duftler 
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 04, 2001 12:13 
  PM
  Subject: RE: Need help on win2000 
  soap run with tomcat
  
  Hi Shyam,
  
  Are you using Xerces v1.3.1? If you are, please you a different 
  version of Xerces, or any other JAXP-compliant parser.
  
  Thanks,
  -Matt
  
-----Original Message-From: Shyam Sarkar 
[mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 
2:06 PMTo: [EMAIL PROTECTED]Subject: 
Need help on win2000 soap run with tomcat
C:\xml\soap\soap-2_1\samples\addressbookjava 
org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
deploy DeploymentDescriptor.xmlException in thread "main" 
[SOAPException: faultCode=SOAP-ENV:Client; msg=A 
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain 
a: 'faultcode' element.; 
targetException=java.lang.IllegalArgumentException: A 
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must 
contain a: 'faultcode' 
element.] at 
org.apache.soap.rpc.Call.invoke(Call.java:244) 
at 
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:127) 
at 
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:140) 
at 
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:228)

C:\x

Re: Need help on win2000 soap run with tomcat

2001-06-05 Thread Shyam Sarkar



Never mind... it works now.

  - Original Message - 
  From: 
  Shyam 
  Sarkar 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 05, 2001 7:27 
AM
  Subject: Re: Need help on win2000 soap 
  run with tomcat
  
  Hi,
  
  I have all the correct classpath defined. 
  Still getting class not found exeception. 
  Removed all parsers other than xerces 1.4.0 from 
  tomcat classpath.
  Need more help.
  
  -error listed 
  below---
  C:\xml\soap\soap-2_1\samples\addressbookjava 
  org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
  deploy DeploymentDescriptor.xml
  
  C:\xml\soap\soap-2_1\samples\addressbookjava 
  org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
  listDeployed Services: 
  urn:AddressFetcher
  
  C:\xml\soap\soap-2_1\samples\addressbookset 
  CLASSPATHCLASSPATH=..\..;.;C:\xml\xerces\xerces-1_3_1\xerces.jar;C:\xml\soap\soap-2_1\lib\soap.jar;C:\xml\javamail-1.2\mail.jar;C:\xml\jaf-1.0.1\activation.jar;C:\jdk1.3\lib\j2ee.jar;\;
  
  C:\xml\soap\soap-2_1\samples\addressbookjava 
  samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter 
  "John B. Good"Generated fault: Fault Code = 
  SOAP-ENV:Client Fault String = deployment error in SOAP service 
  'urn:AddressFetcher': class name 'samples.addressbook.Address' could not be 
  resolved: samples.addressbook.Address
  
  ---
  
- Original Message - 
From: 
Uzay 
Takaoglu 
To: '[EMAIL PROTECTED]' 

Sent: Monday, June 04, 2001 3:45 
PM
Subject: RE: Need help on win2000 soap 
run with tomcat

Check thelist below:

1.Make sureyou set soap's installation dir under your 
"classpath"?
2. 
Make sure the Xercer's path is the first thing under your 
classpath
3. 
By default Tomcat usestwo jar files jaxp.jarand parser.jar, 
removethese jar filesfrom tomcat_installation_dir\lib 
folder


Uzay TakaogluSr. Software 
Engineer 
Simplexis   
eCommerce for the Business of Education www.simplexis.com640 2nd 
Street San Francisco, CA 94107 


  -Original Message-----From: Shyam Sarkar 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 1:45 
  PMTo: [EMAIL PROTECTED]Subject: Re: Need help 
  on win2000 soap run with tomcat
  Hi,
  
  I did replace xerces 1.3.1 with 1.4.0. and 
  could deploy and list but getting other problems for methods.
  Please help me to solve it:
  
  error reported 
  below-
  
  C:\xml\soap\soap-2_1java 
  org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
  deploy 
  C:\xml\soap\soap-2_1\samples\addressbook\DeploymentDescriptor.xml
  
  C:\xml\soap\soap-2_1java 
  org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
  listDeployed Services: 
  urn:AddressFetcher
  
  C:\xml\soap\soap-2_1java 
  samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter 
  "John B. Good"Generated fault: Fault Code = 
  SOAP-ENV:Client Fault String = deployment error in SOAP service 
  'urn:AddressFetcher': class name 'samples.addressbook.Address' could not 
  be resolved: samples.addressbook.Address
  ---
  
- Original Message - 
From: 
Matthew J. Duftler 
To: [EMAIL PROTECTED] 

Sent: Monday, June 04, 2001 12:13 
PM
Subject: RE: Need help on win2000 
soap run with tomcat

Hi Shyam,

Are you using Xerces v1.3.1? If you are, please you a different 
version of Xerces, or any other JAXP-compliant 
parser.

Thanks,
-Matt

  -----Original Message-From: Shyam Sarkar 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 
  2:06 PMTo: [EMAIL PROTECTED]Subject: 
  Need help on win2000 soap run with tomcat
  C:\xml\soap\soap-2_1\samples\addressbookjava 
  org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
  deploy DeploymentDescriptor.xmlException in thread "main" 
  [SOAPException: faultCode=SOAP-ENV:Client; msg=A 
  'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain 
  a: 'faultcode' element.; 
  targetException=java.lang.IllegalArgumentException: A 
  'http://schemas.xmlsoap.org/soap/envelope/:Fault' eleme