Details

    • Type: New Feature New Feature
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.94.0
    • Fix Version/s: None
    • Component/s: build, scripts
    • Labels:
      None

      Description

      Automating the testing of source code in a 'real' instance can be a bit of a pain, even getting it into standalone mode.
      Steps you need to go through:
      1) Build the project
      2) Copy it to the deployment directory
      3) Shutdown the current cluster (if it is running)
      4) Untar the tar
      5) Update the configs to point to a local data cluster
      6) Startup the new deployment

      Yeah, its not super difficult, but it would be nice to just have a script to make it button push easy.

      1. bash_HBASE-5354.patch
        3 kB
        Jesse Yates
      2. bash_HBASE-5354-v0.patch
        4 kB
        Jesse Yates
      3. bash_HBASE-5354-v1.patch
        4 kB
        Jesse Yates

        Activity

        Hide
        Jesse Yates added a comment -

        Reopening issue, since its apparently useful. Actually came up yesterday with testing one of the pom changes I made. Can you give it another spin @stack and commit if you like it?

        Show
        Jesse Yates added a comment - Reopening issue, since its apparently useful. Actually came up yesterday with testing one of the pom changes I made. Can you give it another spin @stack and commit if you like it?
        Hide
        Elliott Clark added a comment -

        Looks good.
        Minor nit. There some odd indenting at the beginning of the script.

        Show
        Elliott Clark added a comment - Looks good. Minor nit. There some odd indenting at the beginning of the script.
        Hide
        Jesse Yates added a comment -

        Updated version - works on my Mac (OSX) and Chris Trezzo's linux box.

        Show
        Jesse Yates added a comment - Updated version - works on my Mac (OSX) and Chris Trezzo's linux box.
        Hide
        Jesse Yates added a comment -

        And apparently its totally hosed on Chris Trezzo's machine... looking into it.

        Show
        Jesse Yates added a comment - And apparently its totally hosed on Chris Trezzo's machine... looking into it.
        Hide
        Jesse Yates added a comment -

        Weird that it didn't work...

        Initially, this was a pretty small test case, though maybe it would make sense to add this check (running locally from the tarball) to the release checklist. If we add it, we should probably roll this script in to make it easier to deal with (also no real way to see usage if its just attached to the jira).

        Show
        Jesse Yates added a comment - Weird that it didn't work... Initially, this was a pretty small test case, though maybe it would make sense to add this check (running locally from the tarball) to the release checklist. If we add it, we should probably roll this script in to make it easier to deal with (also no real way to see usage if its just attached to the jira).
        Hide
        stack added a comment -

        I did this:

        h-24-30:trunk stack$ pwd
        /Users/Stack/checkouts/trunk
        h-24-30:trunk stack$ ./dev-support/deploy.sh 
        

        Maybe we should just leave the script here attached to the issue and if folks start looking for it, we'll point them here. If uptake, commit later?

        Show
        stack added a comment - I did this: h-24-30:trunk stack$ pwd /Users/Stack/checkouts/trunk h-24-30:trunk stack$ ./dev-support/deploy.sh Maybe we should just leave the script here attached to the issue and if folks start looking for it, we'll point them here. If uptake, commit later?
        Hide
        Jesse Yates added a comment -

        how did you try it? I've found it works when running from /hbase, maybe this is a start directory issue (yeah, its a pretty simple script...)?

        Show
        Jesse Yates added a comment - how did you try it? I've found it works when running from /hbase, maybe this is a start directory issue (yeah, its a pretty simple script...)?
        Hide
        stack added a comment -

        I tried it:

        [INFO] ------------------------------------------------------------------------
        [ERROR] FATAL ERROR
        [INFO] ------------------------------------------------------------------------
        [INFO] Could not find resource '/Users/Stack/checkouts/trunk/hbase-common/dev-support/findbugs-exclude.xml'.
        [INFO] ------------------------------------------------------------------------
        [INFO] Trace
        org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find resource '/Users/Stack/checkouts/trunk/hbase-common/dev-support/findbugs-exclude.xml'.
        
        Show
        stack added a comment - I tried it: [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Could not find resource '/Users/Stack/checkouts/trunk/hbase-common/dev-support/findbugs-exclude.xml'. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find resource '/Users/Stack/checkouts/trunk/hbase-common/dev-support/findbugs-exclude.xml'.
        Hide
        Jesse Yates added a comment -

        Try this one out. This version:

        • removes the need to specify the version
          • allows the release option to be dropped
        • drops the security build
        Show
        Jesse Yates added a comment - Try this one out. This version: removes the need to specify the version allows the release option to be dropped drops the security build
        Hide
        Jesse Yates added a comment -

        there were some things I added later that made it a bit nicer - give me a day or so.

        Show
        Jesse Yates added a comment - there were some things I added later that made it a bit nicer - give me a day or so.
        Hide
        stack added a comment -

        It could go in I think since its self-documenting...

        Show
        stack added a comment - It could go in I think since its self-documenting...
        Hide
        Jesse Yates added a comment -

        It seemed slightly useful, at least in testing between the source and a real cluster. I've got a new version somewhere that's a bit better - lemme see if I can find it.

        Show
        Jesse Yates added a comment - It seemed slightly useful, at least in testing between the source and a real cluster. I've got a new version somewhere that's a bit better - lemme see if I can find it.
        Hide
        stack added a comment -

        This script looks alright Jesse. You think we should add it to dev-tools?

        Show
        stack added a comment - This script looks alright Jesse. You think we should add it to dev-tools?
        Hide
        Jesse Yates added a comment -

        No one really seems to need this, particularly with being able to run from the source. Dropping it.

        Show
        Jesse Yates added a comment - No one really seems to need this, particularly with being able to run from the source. Dropping it.
        Hide
        Jesse Yates added a comment -

        Attaching patch that does as described. Apply the patch and then run it from the /hbase as ./dev-support/deploy.sh -h to see the usage info.

        Show
        Jesse Yates added a comment - Attaching patch that does as described. Apply the patch and then run it from the /hbase as ./dev-support/deploy.sh -h to see the usage info.

          People

          • Assignee:
            Jesse Yates
            Reporter:
            Jesse Yates
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development