[jira] [Commented] (TRAFODION-2039) Add support for ALTER LIBRARY FILE ''

2016-06-28 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/TRAFODION-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15354016#comment-15354016
 ] 

ASF GitHub Bot commented on TRAFODION-2039:
---

GitHub user sureshsubbiah opened a pull request:

https://github.com/apache/incubator-trafodion/pull/563

[TRAFODION-2039] Fix mistake in PR530 
https://github.com/apache/incubator-trafodion/pull/530

Thank you Steve Varnau for finding this mistake.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/sureshsubbiah/incubator-trafodion alterlib

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-trafodion/pull/563.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #563


commit 5e8c5f2c6828ff57ef7550b34dad90ca5f382fae
Author: Suresh Subbiah 
Date:   2016-06-28T23:26:05Z

[TRAFODION-2039]- Fix a mistake in PR 530
https://github.com/apache/incubator-trafodion/pull/530




> Add support for ALTER LIBRARY FILE ''
> 
>
> Key: TRAFODION-2039
> URL: https://issues.apache.org/jira/browse/TRAFODION-2039
> Project: Apache Trafodion
>  Issue Type: Improvement
>  Components: sql-general
>Affects Versions: 2.0-incubating
>Reporter: Suresh Subbiah
>Assignee: Suresh Subbiah
>
> Add suppport for an ALTER statement that will allow the file associated with 
> a library object to be changed.
> ALTER LIBRARY FILE ' ;'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TRAFODION-1609) Change swstatus to give a simple "up" or "down" answer, instead of the current, confusing display

2016-06-28 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/TRAFODION-1609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15353036#comment-15353036
 ] 

ASF GitHub Bot commented on TRAFODION-1609:
---

Github user selvaganesang commented on a diff in the pull request:

https://github.com/apache/incubator-trafodion/pull/562#discussion_r68762512
  
--- Diff: core/sqf/sql/scripts/install_local_hadoop ---
@@ -847,20 +847,31 @@ EOF
 
   cat <$MY_SW_SCRIPTS_DIR/swstatus
 #!/bin/sh
-cd ${MY_SW_ROOT}
-. $MY_SW_SCRIPTS_DIR/sw_env.sh
-NUM_JAVA_PROCS=\`ps -aef | grep \$USER | grep java | grep -v grep | wc -l\`
-NUM_MYSQLD_PROCS=\`ps -aef | grep \$USER | grep mysqld | grep -v grep | wc 
-l\`
+cd \${MY_SW_ROOT}
+. \$MY_SW_SCRIPTS_DIR/sw_env.sh
+JPS_OUTPUT=\`jps\`
+SERVICES='HMaster NodeManager ResourceManager NameNode DataNode 
SecondaryNameNode'
+for s in \$SERVICES; do
+if [[ ! \$JPS_OUTPUT =~ \$s ]]; then
+MISS_SERVICE="\$s \$MISS_SERVICE"
+fi
+done
 
-if [ "\$1" == "-v" ]; then
-  ps -aef | grep \$USER | grep java | grep -v grep
-  ps -aef | grep \$USER | grep mysqld | grep -v grep
+if [[ \$MISS_SERVICE != '' ]]; then
+echo "ERROR: Service \"\$MISS_SERVICE\" are not up!"
+exit 1
+else
+echo "The local hadoop services are up!"
 fi
 
-echo "\$NUM_JAVA_PROCS java servers and \$NUM_MYSQLD_PROCS mysqld 
processes are running"
-
-jps | grep -v Jps
-
+NUM_MYSQLD_PROCS=\`ps -aef | grep \$USER | grep mysqld | grep -v grep | wc 
-l\`
+if [[ \$NUM_MYSQLD_PROCS -ne 0 ]]; then
+echo "\$NUM_MYSQLD_PROCS mysqld processes are running"
+exit 0
+else
+echo "ERROR: mysqld process is not running!"
+exit 1
+fi
 EOF
 
--- End diff --

See Line numbers 777 and above of this file. It has scripts like 
swstartall, swstopall, swstarthbase, swstophbase etc.


> Change swstatus to give a simple "up" or "down" answer, instead of the 
> current, confusing display
> -
>
> Key: TRAFODION-1609
> URL: https://issues.apache.org/jira/browse/TRAFODION-1609
> Project: Apache Trafodion
>  Issue Type: Improvement
>  Components: sql-general
>Reporter: Hans Zeller
>Assignee: Eason Zhang
>Priority: Minor
>
> The "swstatus" script used in cases where we did install_local_hadoop counts 
> the MySQL processes and then simply invokes jps.
> It would be better if the script would check specifically for HMaster, 
> NameNode, DataNode and maybe others, like NodeManager and ResourceManager. If 
> any are missing, it should print out which ones are missing, otherwise it 
> should just say something like "processes are up".
> It should also return an exit code of 0 if everything is up and 1 if some 
> processes are missing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)