Oh k. You must be running shark server on bigdata001 to use it from other machines. ./bin/shark --service sharkserver # runs shark server on port 10000
You could connect to shark server as ./bin/shark -h <bigdata001>, this should work unless there is a firewall blocking it. You might use telnet bigdata001 10000 from bigdata003 to check if port is accessible. Hope that helps. On Wed, Mar 26, 2014 at 12:57 PM, qingyang li <liqingyang1...@gmail.com>wrote: > hi, Praveen, thanks for replying. > > I am using hive-0.11 which comes from amplab, at the begining , the > hive-site.xml of amplab is empty, so , i copy one hive-site.xml from my > cluster and then remove some attributes and aslo add some atrributs. > > i think it is not the reason for my problem, > i think the reason is shark is runing on local mode , not cluster mode, > when i run bin/shark on bigdata001, it certainly can not get the result > which exist on bigdata003. while i run bin/shark on bigdata003, i can get > result. > > though it is the reason, i still can not understand why the result is on > bigdata003(master is bigdata001)? > > > > > 2014-03-25 18:41 GMT+08:00 Praveen R <prav...@mobipulse.in>: > > Hi Qingyang Li, >> >> Shark-0.9.0 uses a patched version of hive-0.11 and using >> configuration/metastore of hive-0.12 could be incompatible. >> >> May I know the reason you are using hive-site.xml from previous hive >> version(to use existing metastore?). You might just leave hive-site.xml >> blank, otherwise. Something like this: >> <?xml version="1.0"?> >> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> >> <configuration> >> </configuration> >> >> In any case you could run ./bin/shark-withdebug for any errors. >> >> Regards, >> Praveen >> >> On 25-Mar-2014, at 1:49 pm, qingyang li <liqingyang1...@gmail.com> wrote: >> >> reopen this thread because i encounter this problem again. >> Here is my env: >> scala 2.10.3 s >> spark 0.9.0 tandalone mode >> shark 0.9.0 downlaod the source code and build by myself >> hive hive-shark-0.11 >> I have copied hive-site.xml from my hadoop cluster , it's hive version is >> 0.12, after copied , i deleted some attributes from hive-site.xml >> >> When run select count(*) from xxx, no resut and no errors output. >> >> Can someone give me some suggestions to debug ? >> >> >> >> >> >> 2014-03-20 11:27 GMT+08:00 qingyang li <liqingyang1...@gmail.com>: >> >>> have found the cause , my problem is : >>> the style of file salves is not correct, so the task only be run on >>> master. >>> >>> explain here to help other guy who also encounter similiar problem. >>> >>> >>> 2014-03-20 9:57 GMT+08:00 qingyang li <liqingyang1...@gmail.com>: >>> >>> Hi, i install spark0.9.0 and shark0.9 on 3 nodes , when i run select * >>>> from src , i can get result, but when i run select count(*) from src or >>>> select * from src limit 1, there is no result output. >>>> >>>> i have found similiar problem on google groups: >>>> >>>> https://groups.google.com/forum/#!searchin/spark-users/Shark$20does$20not$20give$20any$20results$20with$20SELECT$20command/spark-users/oKMBPBWim0U/_hbDCi4m-xUJ >>>> but , there is no solution on it. >>>> >>>> Does anyone encounter such problem? >>>> >>> >>> >> >> >