Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-2537

After deleting default namespace deploying an app does not create the stream

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1
    • Component/s: CLI, Namespaces, Streams
    • Labels:
      None
    • Rank:
      1|hzytmn:

      Description

      Here is what I did (it should happen with any app that creates a stream). The first time I deploy the app, it creates a stream. After deleting default namespace, deploying the same app again does not create the stream.

      This appears to be a problem only for streams. The datasets get created properly.

      $ cdap.sh start
      Starting Standalone CDAP .....................
      Standalone CDAP started successfully.
      Connect to the Console at http://localhost:9999
      
      $ cdap-cli.sh
      Successfully connected CDAP instance at http://Andreass-Pro.local:10000
      cdap (http://Andreass-Pro.local:10000/default)> deploy app target/tickers-3.0.0.jar
      Successfully deployed application
      
      cdap (http://Andreass-Pro.local:10000/default)> list streams
      +==========+
      | name     |
      +==========+
      | sessions |
      +==========+
      
      cdap (http://Andreass-Pro.local:10000/default)> delete namespace default
      WARNING: Deleting namespace is an unrecoverable operation
      Are you sure you want to delete contents of namespace 'default' [y/N]? y
      Contents of namespace 'default' were deleted successfully
      
      cdap (http://Andreass-Pro.local:10000/default)> deploy app target/tickers-3.0.0.jar
      Successfully deployed application
      
      cdap (http://Andreass-Pro.local:10000/default)> list streams
      +======+
      | name |
      +======+
      +======+
      
      cdap (http://Andreass-Pro.local:10000/default)> list dataset instances
      +==========================================================+
      | name       | type                                        |
      +==========================================================+
      | interests  | co.cask.cdap.training.tickers.InterestTable |
      | affinities | co.cask.cdap.training.tickers.AffinityTable |
      +==========================================================+
      
      

        Attachments

          Activity

            People

            • Assignee:
              bhooshan Bhooshan Mogal
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: