incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [45/58] [partial] Initial setup of new console
Date Tue, 08 Oct 2013 17:59:53 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/app/views/zookeepers/_zookeeper.html.haml
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/app/views/zookeepers/_zookeeper.html.haml b/contrib/blur-console-old/blur-admin/app/views/zookeepers/_zookeeper.html.haml
new file mode 100644
index 0000000..28e1b2d
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/app/views/zookeepers/_zookeeper.html.haml
@@ -0,0 +1,66 @@
+-#
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+
+.zookeeper_info
+  %table.zookeeper_table{:id => "#{zookeeper.id}"}
+    %thead
+      %tr
+        %th.zookeeper-title{ :colspan => 3 }
+          .zookeeper-name
+            = zookeeper.name
+          .zookeeper-status
+            = case zookeeper.zookeeper_status; when 0 then "Offline"; when 1 then "Online"; else "Not Available"; end
+
+    %tbody
+      %tr
+        %td.index
+        %th.cont
+          Controllers
+        %th.shard
+          Shards
+      %tr
+        %th.index
+          Blur Version
+        %td.cont
+          .bv-cont
+            .controllers-bv.label.status
+              No Controllers Available
+        %td.shard
+          .bv-shard
+            .shards-bv.label.status
+              No Shards Available
+      %tr
+        %th.index
+          Status
+        %td.cont
+          .progress.progress-up-down.stat-cont
+            .bar.up.controllers-online{:style=>'width:100%'}
+              %span.number 0
+              Online/Offline
+            .down.controllers-offline
+              %span.number
+        %td.shard
+          .progress.progress-up-down.stat-shard
+            .bar.up.shards-online{:style=>'width:100%'}
+              %span.number 0
+              Online/Offline
+            .down.shards-offline
+              %span.number
+      %tr
+        %td{ :colspan => 3 }
+          .warning

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/app/views/zookeepers/index.html.haml
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/app/views/zookeepers/index.html.haml b/contrib/blur-console-old/blur-admin/app/views/zookeepers/index.html.haml
new file mode 100644
index 0000000..a816dea
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/app/views/zookeepers/index.html.haml
@@ -0,0 +1,33 @@
+-#
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+
+- content_for :title, 'Blur Status'
+- content_for :javascript do
+  = javascript_include_tag 'dashboard/dashboard'
+
+.dashboard_wrapper
+  #zookeepers_wrapper
+    %h2 Blur Instances
+    #zookeepers
+    .clearfix
+
+  #hdfs_dash_wrapper
+    %h2 HDFS
+    #hdfses 
+    .clearfix
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/app/views/zookeepers/show.html.haml
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/app/views/zookeepers/show.html.haml b/contrib/blur-console-old/blur-admin/app/views/zookeepers/show.html.haml
new file mode 100644
index 0000000..196709b
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/app/views/zookeepers/show.html.haml
@@ -0,0 +1,51 @@
+-#
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+
+- content_for :title, 'Environment Status'
+- content_for :javascript do
+  = javascript_include_tag 'environment/environment'
+
+#zookeeper_wrapper
+  #zookeeper
+  #blur.row
+    #controllers.span6
+      .subHeaders
+        Controllers
+      .controller_table
+        %table.table.table-bordered
+          %thead
+            %th Name
+            %th Blur Version
+            %th
+          %tbody
+            %tr.no_children
+              %td{:colspan => 3} No Controllers!
+    #clusters.span6
+      .subHeaders
+        Clusters
+      .clusters_table
+        %table.table.table-bordered
+          %thead
+            %th Name
+            %th Blur Version
+            %th Safe Mode
+            %th Shards
+            %th
+          %tbody
+            %tr.no_children
+              %td{:colspan => 5} No Clusters!
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config.ru
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config.ru b/contrib/blur-console-old/blur-admin/config.ru
new file mode 100644
index 0000000..2f934ea
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config.ru
@@ -0,0 +1,22 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment',  __FILE__)
+run BlurAdmin::Application

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/application.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/application.rb b/contrib/blur-console-old/blur-admin/config/application.rb
new file mode 100644
index 0000000..c21c9d4
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/application.rb
@@ -0,0 +1,41 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+require File.expand_path('../boot', __FILE__)
+
+require 'rails/all'
+
+if defined?(Bundler)
+  Bundler.require(*Rails.groups(:assets => %w(development test)))
+end
+
+module BlurAdmin
+  class Application < Rails::Application
+    config.encoding = "utf-8"
+
+    # Configure sensitive parameters which will be filtered from the log file.
+    config.filter_parameters += [:password, :query_string]
+
+    # Enable the asset pipeline
+    config.assets.enabled = true
+
+    # Version of your assets, change this if you want to expire all your assets
+    config.assets.version = '1.0'
+    
+    # Custom directories with classes and modules you want to be autoloadable.
+    config.autoload_paths += %W(#{config.root}/lib/thrift)
+
+    config.exceptions_app = self.routes
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/boot.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/boot.rb b/contrib/blur-console-old/blur-admin/config/boot.rb
new file mode 100644
index 0000000..969ed9d
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/boot.rb
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+require 'rubygems'
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/compass.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/compass.rb b/contrib/blur-console-old/blur-admin/config/compass.rb
new file mode 100644
index 0000000..1595f66
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/compass.rb
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+# This configuration file works with both the Compass command line tool and within Rails.
+# Require any additional compass plugins here.
+project_type = :rails
+# Set this to the root of your project when deployed:
+http_path = "/"
+sass_dir = "app/stylesheets"
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/database.yml
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/database.yml b/contrib/blur-console-old/blur-admin/config/database.yml
new file mode 100644
index 0000000..bcf87f4
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/database.yml
@@ -0,0 +1,43 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+  
+development:
+  adapter: mysql2
+  encoding: utf8
+  database: blurtools_development
+  host: localhost
+  pool: 5
+  username: root
+  password: 
+
+test:
+  adapter: mysql2
+  encoding: utf8
+  database: blurtools-test
+  host: localhost
+  pool: 5
+  username: root
+  password:
+
+production:
+  adapter: mysql2
+  encoding: utf8
+  database: blurtools
+  host: localhost
+  pool: 5
+  username: root
+  password: 
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/environment.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/environment.rb b/contrib/blur-console-old/blur-admin/config/environment.rb
new file mode 100644
index 0000000..ede0983
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/environment.rb
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+# Load the rails application
+require File.expand_path('../application', __FILE__)
+
+# Initialize the rails application
+BlurAdmin::Application.initialize!
+
+#generate the routes file
+#JsRoutes.generate!
+
+#setup authlogic
+BlurAdmin::Application.configure do
+  config.gem "authlogic"
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/environments/development.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/environments/development.rb b/contrib/blur-console-old/blur-admin/config/environments/development.rb
new file mode 100644
index 0000000..e2c8333
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/environments/development.rb
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+BlurAdmin::Application.configure do
+  # Settings specified here will take precedence over those in config/application.rb
+
+  # In the development environment your application's code is reloaded on
+  # every request. This slows down response time but is perfect for development
+  # since you don't have to restart the web server when you make code changes.
+  config.cache_classes = false
+
+  # Log error messages when you accidentally call methods on nil.
+  config.whiny_nils = true
+
+  # Show full error reports and disable caching
+  config.consider_all_requests_local       = true
+  config.action_controller.perform_caching = false
+
+  # Don't care if the mailer can't send
+  config.action_mailer.raise_delivery_errors = false
+
+  # Print deprecation notices to the Rails logger
+  config.active_support.deprecation = :log
+
+  # Only use best-standards-support built into browsers
+  config.action_dispatch.best_standards_support = :builtin
+
+  # Raise exception on mass assignment protection for Active Record models
+  config.active_record.mass_assignment_sanitizer = :strict
+
+  # Log the query plan for queries taking more than this (works
+  # with SQLite, MySQL, and PostgreSQL)
+  config.active_record.auto_explain_threshold_in_seconds = 0.5
+
+  # Do not compress assets
+  config.assets.compress = false
+
+  # Expands the lines which load the assets
+  config.assets.debug = true
+
+  
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/environments/production.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/environments/production.rb b/contrib/blur-console-old/blur-admin/config/environments/production.rb
new file mode 100644
index 0000000..46ac93a
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/environments/production.rb
@@ -0,0 +1,64 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+BlurAdmin::Application.configure do
+  # Settings specified here will take precedence over those in config/application.rb
+
+  # Code is not reloaded between requests
+  config.cache_classes = true
+
+  # Full error reports are disabled and caching is turned on
+  config.consider_all_requests_local       = false
+  config.action_controller.perform_caching = true
+
+  # Disable Rails's static asset server (Apache or nginx will already do this)
+  config.serve_static_assets = false
+
+  # Compress JavaScripts and CSS
+  config.assets.compress = true
+
+  # Don't fallback to assets pipeline if a precompiled asset is missed
+  config.assets.compile = false
+
+  # Generate digests for assets URLs
+  config.assets.digest = true
+  
+  config.assets.precompile += Dir.foreach('app/assets/javascripts/').select{|file| (file =~ /.js/) }
+  config.assets.precompile += ['blur_table/blur_tables.js', 'dashboard/dashboard.js', 'environment/environment.js']
+  
+  #.reject{|file| (file =~ /.*\.coffee/).nil? && (file =~ /routes.js/).nil?}.collect{|file| file.gsub /.coffee/, ''}
+  
+  config.action_dispatch.x_sendfile_header = "X-Sendfile"
+  
+  class LogFormatter < Logger::Formatter
+    def call(severity,time,progname,msg)
+      "#{severity} #tok1-block-tok #{msg}\n"
+    end
+  end
+  config.logger = Logger.new("#{::Rails.root.to_s}/log/#{ENV['RAILS_ENV']}.log", 10,26_214_400)
+  config.logger.formatter = LogFormatter.new
+  config.logger.level = Logger::WARN
+
+  config.i18n.fallbacks = true
+
+  # Send deprecation notices to registered listeners
+  config.active_support.deprecation = :notify
+
+  # Log the query plan for queries taking more than this (works
+  # with SQLite, MySQL, and PostgreSQL)
+  config.active_record.auto_explain_threshold_in_seconds = 2
+
+  config.action_dispatch.rack_cache = {:metastore => "rails:/", :entitystore => "rails:/", :verbose => false}
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/environments/test.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/environments/test.rb b/contrib/blur-console-old/blur-admin/config/environments/test.rb
new file mode 100644
index 0000000..4a04651
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/environments/test.rb
@@ -0,0 +1,52 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+BlurAdmin::Application.configure do
+  # Settings specified here will take precedence over those in config/application.rb
+
+  # The test environment is used exclusively to run your application's
+  # test suite. You never need to work with it otherwise. Remember that
+  # your test database is "scratch space" for the test suite and is wiped
+  # and recreated between test runs. Don't rely on the data there!
+  config.cache_classes = true
+
+  # Configure static asset server for tests with Cache-Control for performance
+  config.serve_static_assets = true
+  config.static_cache_control = "public, max-age=3600"
+
+  # Log error messages when you accidentally call methods on nil
+  config.whiny_nils = true
+
+  # Show full error reports and disable caching
+  config.consider_all_requests_local       = true
+  config.action_controller.perform_caching = false
+
+  # Raise exceptions instead of rendering exception templates
+  config.action_dispatch.show_exceptions = false
+
+  # Disable request forgery protection in test environment
+  config.action_controller.allow_forgery_protection    = false
+
+  # Tell Action Mailer not to deliver emails to the real world.
+  # The :test delivery method accumulates sent emails in the
+  # ActionMailer::Base.deliveries array.
+  config.action_mailer.delivery_method = :test
+
+  # Raise exception on mass assignment protection for Active Record models
+  config.active_record.mass_assignment_sanitizer = :strict
+
+  # Print deprecation notices to the stderr
+  config.active_support.deprecation = :stderr
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/asset_precompile_prefix_fix.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/asset_precompile_prefix_fix.rb b/contrib/blur-console-old/blur-admin/config/initializers/asset_precompile_prefix_fix.rb
new file mode 100644
index 0000000..4983521
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/asset_precompile_prefix_fix.rb
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+
+# ./config/initializers/asset_precompile_prefix_fix.rb
+#
+# So we can deploy at a SubURI, and precompile assets to respect that with:
+#    RAILS_RELATIVE_URL_ROOT=/foo rake assets:precompile
+#
+# See: http://stackoverflow.com/questions/7293918/broken-precompiled-assets-in-rails-3-1-when-deploying-to-a-sub-uri
+#
+# Confirmed working in Rails 3.1.3
+# Future versions of Rails may make this monkey patch unneccesary. (or break
+# it without making it unneccesary)
+#
+#
+# We are monkey patching source originally (in 3.1.3) at:
+# https://github.com/rails/rails/blob/master/actionpack/lib/sprockets/helpers/rails_helper.rb#L54
+
+module Sprockets
+  module Helpers
+    module RailsHelper
+
+      included do |klass|
+        klass.alias_method_chain :asset_path, :prefix
+      end
+      
+      def asset_path_with_prefix(*args)
+        path = asset_path_without_prefix(*args)
+        
+        if !asset_paths.send(:has_request?)
+          path = ENV['RAILS_RELATIVE_URL_ROOT'] + path if ENV['RAILS_RELATIVE_URL_ROOT']
+        end
+        
+        return path
+      end
+       
+                
+    end 
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/backtrace_silencers.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/backtrace_silencers.rb b/contrib/blur-console-old/blur-admin/config/initializers/backtrace_silencers.rb
new file mode 100644
index 0000000..57fd2a9
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/backtrace_silencers.rb
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
+# Rails.backtrace_cleaner.remove_silencers!

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/blur_instrumentation.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/blur_instrumentation.rb b/contrib/blur-console-old/blur-admin/config/initializers/blur_instrumentation.rb
new file mode 100644
index 0000000..edf661f
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/blur_instrumentation.rb
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+ActiveSupport::Notifications.subscribe "search.blur" do |name, start, finish, id, payload|
+  item_name = '%s (%dms)' % ["Blur Query", (finish - start)]
+  Rails.logger.debug("  #{item_name}  [#{payload[:table]}] #{payload[:query]} - #{payload[:urls]}")
+end
+
+ActiveSupport::Notifications.subscribe "terms.blur" do |name, start, finish, id, payload|
+  item_name = '%s (%dms)' % ["Blur Terms", (finish - start)]
+  Rails.logger.debug("  #{item_name}  [#{payload[:family]}.#{payload[:column]}] #{payload[:starter]} (#{payload[:size]}) - #{payload[:urls]}")
+end
+
+ActiveSupport::Notifications.subscribe "enable.blur" do |name, start, finish, id, payload|
+  item_name = '%s (%dms)' % ["Blur Enable Table", (finish - start)]
+  Rails.logger.debug("  #{item_name}  [#{payload[:table]}] - #{payload[:urls]}")
+end
+
+ActiveSupport::Notifications.subscribe "disable.blur" do |name, start, finish, id, payload|
+  item_name = '%s (%dms)' % ["Blur Disable Table", (finish - start)]
+  Rails.logger.debug("  #{item_name}  [#{payload[:table]}] - #{payload[:urls]}")
+end
+
+ActiveSupport::Notifications.subscribe "destroy.blur" do |name, start, finish, id, payload|
+  item_name = '%s (%dms)' % ["Blur Destroy Table", (finish - start)]
+  Rails.logger.debug("  #{item_name}  [#{payload[:table]}] (Underlying: #{payload[:underlying]}) - #{payload[:urls]}")
+end
+
+ActiveSupport::Notifications.subscribe "cancel.blur" do |name, start, finish, id, payload|
+  item_name = '%s (%dms)' % ["Blur Cancel Query", (finish - start)]
+  Rails.logger.debug("  #{item_name}  [#{payload[:table]}] #{payload[:uuid]} - #{payload[:urls]}")
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/inflections.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/inflections.rb b/contrib/blur-console-old/blur-admin/config/initializers/inflections.rb
new file mode 100644
index 0000000..e328443
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/inflections.rb
@@ -0,0 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+ActiveSupport::Inflector.inflections do |inflection|
+  inflection.irregular "is", "are"
+  inflection.uncountable "hdfs"
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/mime_types.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/mime_types.rb b/contrib/blur-console-old/blur-admin/config/initializers/mime_types.rb
new file mode 100644
index 0000000..7428a22
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/mime_types.rb
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+# Be sure to restart your server when you modify this file.
+
+# Add new mime types for use in respond_to blocks:
+# Mime::Type.register "text/richtext", :rtf
+# Mime::Type.register_alias "text/html", :iphone

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/overrides.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/overrides.rb b/contrib/blur-console-old/blur-admin/config/initializers/overrides.rb
new file mode 100644
index 0000000..d830810
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/overrides.rb
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+module Rack
+  module Utils
+    def escape(s)
+      CGI.escape(s.to_s)
+    end
+    def unescape(s)
+      CGI.unescape(s)
+    end
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/quiet_assets.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/quiet_assets.rb b/contrib/blur-console-old/blur-admin/config/initializers/quiet_assets.rb
new file mode 100644
index 0000000..ead0491
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/quiet_assets.rb
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+Rails.application.assets.logger = Logger.new('/dev/null')
+Rails::Rack::Logger.class_eval do
+  def call_with_quiet_assets(env)
+    previous_level = Rails.logger.level
+    Rails.logger.level = Logger::ERROR if env['PATH_INFO'].index("/assets/") == 0
+    call_without_quiet_assets(env).tap do
+      Rails.logger.level = previous_level
+    end
+  end
+  alias_method_chain :call, :quiet_assets
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/secret_token.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/secret_token.rb b/contrib/blur-console-old/blur-admin/config/initializers/secret_token.rb
new file mode 100644
index 0000000..65d81d9
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/secret_token.rb
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+# Be sure to restart your server when you modify this file.
+
+# Your secret key for verifying the integrity of signed cookies.
+# If you change this key, all old signed cookies will become invalid!
+# Make sure the secret is at least 30 characters and all random,
+# no regular words or you'll be exposed to dictionary attacks.
+BlurAdmin::Application.config.secret_token = '538e2d950ec5888e4edf191ba28ebb070927afbad9b98a316afc7ec040300990b8499d4824902814c46c09ed9749d4fe195fe62e503dc4d3972244db2c14864f'

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/session_store.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/session_store.rb b/contrib/blur-console-old/blur-admin/config/initializers/session_store.rb
new file mode 100644
index 0000000..8567a85
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/session_store.rb
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+# Be sure to restart your server when you modify this file.
+
+BlurAdmin::Application.config.session_store :cookie_store, key: '_blur-admin_session'
+
+# Use the database for sessions instead of the cookie-based default,
+# which shouldn't be used to store highly confidential information
+# (create the session table with "rails generate session_migration")
+# BlurAdmin::Application.config.session_store :active_record_store

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/initializers/wrap_parameters.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/initializers/wrap_parameters.rb b/contrib/blur-console-old/blur-admin/config/initializers/wrap_parameters.rb
new file mode 100644
index 0000000..fa2f2df
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/initializers/wrap_parameters.rb
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+# Be sure to restart your server when you modify this file.
+#
+# This file contains settings for ActionController::ParamsWrapper which
+# is enabled by default.
+
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
+ActiveSupport.on_load(:action_controller) do
+  wrap_parameters format: [:json]
+end
+
+# Disable root element in JSON by default.
+ActiveSupport.on_load(:active_record) do
+  self.include_root_in_json = false
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/locales/en.yml
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/locales/en.yml b/contrib/blur-console-old/blur-admin/config/locales/en.yml
new file mode 100644
index 0000000..f93983f
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/locales/en.yml
@@ -0,0 +1,23 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+
+# Sample localization file for English. Add more files in this directory for other locales.
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+
+en:
+  hello: "Hello world"

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/config/routes.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/config/routes.rb b/contrib/blur-console-old/blur-admin/config/routes.rb
new file mode 100644
index 0000000..3059209
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/config/routes.rb
@@ -0,0 +1,114 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+BlurAdmin::Application.routes.draw do
+  # User routes
+  resources :users do
+    match '/preferences/:pref_type' => 'preferences#update', :via => :put, :as => :preference
+  end
+
+  resources :admin_settings, :only => [:update]
+
+  # Zookeeper routes
+  resources :zookeepers, :only => [:index, :show, :destroy], :shallow => true do
+    # Nested cluster Resource
+    resources :clusters, :only => [:destroy] do
+      # Nested Shards Resource
+      resources :blur_shards, :only => [:index, :destroy]
+    end
+
+    # Nested BlurTables Resource
+    resources :blur_tables, :only => :index do
+
+      # BlurTable routes
+      member do
+        get 'terms'
+        get 'hosts'
+        get 'schema'
+        put 'comment'
+      end
+      collection do
+        put 'enable'
+        put 'disable'
+        delete 'destroy'
+      end
+    end
+
+    # Nested BlurQueries Resource
+    resources :blur_queries, :only => [:index, :show] do
+
+      #Blur Queries routes
+      member do
+        put 'cancel'
+      end
+      collection do
+        get 'refresh/:time_length', :action => :refresh, :as => :refresh
+      end
+    end
+
+    # Nested Controller Resource
+    resources :blur_controllers, :only => [:destroy]
+
+    # Nested Search Resource
+    resources :searches, :only => [:index, :update, :show, :destroy] do
+      collection do
+        post 'save'
+        post ':blur_table', :action => :create, :as => :fetch_results
+        get 'filters/:blur_table', :action => :filters, :as => :filters
+      end
+    end
+
+    # Zookeeper specific action
+    member do
+      get 'long_running' => 'zookeepers#long_running_queries', :as => :long_running_queries
+    end
+  end
+
+  resources :hdfs, :only => :index do
+    get '(/:id(/show(*fs_path)))', :action => :index, :on => :collection
+    member do
+      get 'info'
+      get 'folder_info'
+      get 'slow_folder_info'
+      get 'expand(*fs_path)', :action => :expand, :as => :expand, :format => false
+      get 'file_info(*fs_path)', :action => :file_info, :as => :file_info, :format => false
+      post 'move', :action => :move_file
+      post 'mkdir'
+      post 'delete_file'
+      get 'upload_form'
+      post 'upload'
+      get 'structure', :action => :file_tree
+
+    end
+  end
+
+  resources :user_sessions, :only => [:create]
+  resources :hdfs_metrics, :only => [:index] do
+    member do
+      get 'stats', :action => :stats
+    end
+  end
+
+  resources :audits, :only => [:index]
+
+  match 'login' => 'user_sessions#new', :as => :login
+  match 'logout' => 'user_sessions#destroy', :as => :logout
+  match 'help/:tab' => 'application#help', :as => :help
+  root :to => 'zookeepers#index'
+
+    #Errors
+  match '/404' => 'errors#error_404'
+  match '/500' => 'errors#error_500'
+  match '/422' => 'errors#error_422'
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110524204140_create_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110524204140_create_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110524204140_create_blur_tables.rb
new file mode 100644
index 0000000..691a9aa
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110524204140_create_blur_tables.rb
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateBlurTables < ActiveRecord::Migration
+  def self.up
+    create_table :blur_tables do |t|
+      t.string :table_name
+      t.integer :current_size
+      t.integer :query_usage
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :blur_tables
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110524213803_create_hdfs_stats.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110524213803_create_hdfs_stats.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110524213803_create_hdfs_stats.rb
new file mode 100644
index 0000000..b1204e8
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110524213803_create_hdfs_stats.rb
@@ -0,0 +1,40 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateHdfsStats < ActiveRecord::Migration
+  def self.up
+    create_table :hdfs_stats do |t|
+      t.string :hdfs_name
+      t.integer :config_capacity
+      t.integer :present_capacity
+      t.integer :dfs_remaining
+      t.integer :dfs_used
+      t.decimal :dfs_used_percent
+      t.integer :under_replicated
+      t.integer :corrupt_blocks
+      t.integer :missing_blocks
+      t.integer :total_nodes
+      t.integer :dead_nodes
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :hdfs_stats
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110525015557_create_blur_queries.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110525015557_create_blur_queries.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110525015557_create_blur_queries.rb
new file mode 100644
index 0000000..7b1dadf
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110525015557_create_blur_queries.rb
@@ -0,0 +1,36 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateBlurQueries < ActiveRecord::Migration
+  def self.up
+    create_table :blur_queries do |t|
+      t.string :query_string
+      t.integer :cpu_time
+      t.integer :real_time
+      t.integer :complete
+      t.boolean :interrupted
+      t.boolean :running
+      t.string :uuid
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :blur_queries
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110526003150_add_extra_columns_to_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110526003150_add_extra_columns_to_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110526003150_add_extra_columns_to_blur_tables.rb
new file mode 100644
index 0000000..0afb90c
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110526003150_add_extra_columns_to_blur_tables.rb
@@ -0,0 +1,36 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddExtraColumnsToBlurTables < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :table_name, :string
+    add_column :blur_queries, :super_query_on, :boolean
+    add_column :blur_queries, :facets, :string
+    add_column :blur_queries, :selectors, :string
+    add_column :blur_queries, :start, :integer
+    add_column :blur_queries, :fetch, :integer
+  end
+
+  def self.down
+    remove_column :blur_queries, :table_name
+    remove_column :blur_queries, :super_query_on
+    remove_column :blur_queries, :facets
+    remove_column :blur_queries, :selectors
+    remove_column :blur_queries, :start
+    remove_column :blur_queries, :fetch
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110526193123_add_filter_columns_to_blur_queries.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110526193123_add_filter_columns_to_blur_queries.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110526193123_add_filter_columns_to_blur_queries.rb
new file mode 100644
index 0000000..ad00dae
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110526193123_add_filter_columns_to_blur_queries.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddFilterColumnsToBlurQueries < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :pre_filters, :text, :limit => 64.kilobytes + 1
+    add_column :blur_queries, :post_filters, :text, :limit => 64.kilobytes + 1
+  end
+
+  def self.down
+    remove_column :blur_queries, :pre_filters
+    remove_column :blur_queries, :post_filters
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110526201313_modify_fetch_column_name.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110526201313_modify_fetch_column_name.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110526201313_modify_fetch_column_name.rb
new file mode 100644
index 0000000..5ad9a9d
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110526201313_modify_fetch_column_name.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ModifyFetchColumnName < ActiveRecord::Migration
+  def self.up
+    rename_column :blur_queries, :fetch, :fetch_num
+  end
+
+  def self.down
+    rename_column :blur_queries, :fetch_num, :fetch
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110602014308_add_selector_columns.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110602014308_add_selector_columns.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110602014308_add_selector_columns.rb
new file mode 100644
index 0000000..f1e2fbe
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110602014308_add_selector_columns.rb
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddSelectorColumns < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :selector_column_families, :text
+    add_column :blur_queries, :selector_columns, :text
+
+    remove_column :blur_queries, :selectors
+  end
+
+  def self.down
+    remove_column :blur_queries, :selector_column_families
+    remove_column :blur_queries, :selector_columns
+
+    add_column :blur_queries, :selectors, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110603004748_add_userid_to_blur_queries.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110603004748_add_userid_to_blur_queries.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110603004748_add_userid_to_blur_queries.rb
new file mode 100644
index 0000000..ea2bbe8
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110603004748_add_userid_to_blur_queries.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddUseridToBlurQueries < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :userid, :string
+  end
+
+  def self.down
+    remove_column :blur_queries, :userid
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110607191131_create_users.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110607191131_create_users.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110607191131_create_users.rb
new file mode 100644
index 0000000..7b56eb2
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110607191131_create_users.rb
@@ -0,0 +1,33 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateUsers < ActiveRecord::Migration
+  def self.up
+    create_table :users do |t|
+      t.string :username
+      t.string :email
+      t.string :crypted_password
+      t.string :password_salt
+      t.string :persistence_token
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :users
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110613135529_add_roles_mask_to_users.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110613135529_add_roles_mask_to_users.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110613135529_add_roles_mask_to_users.rb
new file mode 100644
index 0000000..9102c46
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110613135529_add_roles_mask_to_users.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddRolesMaskToUsers < ActiveRecord::Migration
+  def self.up
+    add_column :users, :roles_mask, :integer
+  end
+
+  def self.down
+    remove_column :users, :roles_mask
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110614201547_add_count_column_to_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110614201547_add_count_column_to_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110614201547_add_count_column_to_blur_tables.rb
new file mode 100644
index 0000000..d828e3a
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110614201547_add_count_column_to_blur_tables.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddCountColumnToBlurTables < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :record_count, :integer, :limit => 8
+  end
+
+  def self.down
+    remove_column :blur_tables, :record_count
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110616133049_add_status_column_to_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110616133049_add_status_column_to_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110616133049_add_status_column_to_blur_tables.rb
new file mode 100644
index 0000000..811074e
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110616133049_add_status_column_to_blur_tables.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddStatusColumnToBlurTables < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :status, :boolean
+  end
+
+  def self.down
+    remove_column :blur_tables, :record_count
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110617140116_add_agentdata_column_to_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110617140116_add_agentdata_column_to_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110617140116_add_agentdata_column_to_blur_tables.rb
new file mode 100644
index 0000000..402994f
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110617140116_add_agentdata_column_to_blur_tables.rb
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddAgentdataColumnToBlurTables < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :table_uri, :boolean
+    add_column :blur_tables, :table_analyzer, :text
+    add_column :blur_tables, :schema, :text
+    add_column :blur_tables, :server, :text
+  end
+
+  def self.down
+    remove_column :blur_tables, :table_uri
+    remove_column :blur_tables, :table_analyzer
+    remove_column :blur_tables, :schema
+    remove_column :blur_tables, :server
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110617142244_fix_table_types.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110617142244_fix_table_types.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110617142244_fix_table_types.rb
new file mode 100644
index 0000000..4af544d
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110617142244_fix_table_types.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class FixTableTypes < ActiveRecord::Migration
+  def self.up
+    change_column :blur_tables, :status, :integer
+    change_column :blur_tables, :table_uri, :string
+  end
+
+  def self.down
+    change_column :blur_tables, :status, :boolean
+    change_column :blur_tables, :table_uri, :boolean
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110617163052_change_schema_column.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110617163052_change_schema_column.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110617163052_change_schema_column.rb
new file mode 100644
index 0000000..f890aa7
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110617163052_change_schema_column.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeSchemaColumn < ActiveRecord::Migration
+  def self.up
+    rename_column :blur_tables, :schema, :table_schema
+  end
+
+  def self.down
+    rename_column :blur_tables, :table_schema, :schema
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110621202105_add_table_id_column_to_blur_queries.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110621202105_add_table_id_column_to_blur_queries.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110621202105_add_table_id_column_to_blur_queries.rb
new file mode 100644
index 0000000..b871899
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110621202105_add_table_id_column_to_blur_queries.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddTableIdColumnToBlurQueries < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :blur_table_id, :int
+  end
+
+  def self.down
+    remove_column :blur_queries, :blur_table_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110621202658_remove_table_name_column_from_blur_queries.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110621202658_remove_table_name_column_from_blur_queries.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110621202658_remove_table_name_column_from_blur_queries.rb
new file mode 100644
index 0000000..63b4256
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110621202658_remove_table_name_column_from_blur_queries.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class RemoveTableNameColumnFromBlurQueries < ActiveRecord::Migration
+  def self.up
+    remove_column :blur_queries, :table_name
+  end
+
+  def self.down
+    add_column :blur_queries, :table_name, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110621225406_create_blur_zookeeper_instances.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110621225406_create_blur_zookeeper_instances.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110621225406_create_blur_zookeeper_instances.rb
new file mode 100644
index 0000000..f37ced1
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110621225406_create_blur_zookeeper_instances.rb
@@ -0,0 +1,31 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateBlurZookeeperInstances < ActiveRecord::Migration
+  def self.up
+    create_table :blur_zookeeper_instances do |t|
+      t.string :host
+      t.string :port
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :blur_zookeeper_instances
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110621225838_create_controllers.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110621225838_create_controllers.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110621225838_create_controllers.rb
new file mode 100644
index 0000000..a2e1506
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110621225838_create_controllers.rb
@@ -0,0 +1,34 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateControllers < ActiveRecord::Migration
+  def self.up
+    create_table :controllers do |t|
+      t.integer :status
+      t.string :blur_version
+      t.string :node_name
+      t.string :node_location
+      t.integer :blur_zookeeper_instance_id
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :controllers
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110621230243_create_clusters.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110621230243_create_clusters.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110621230243_create_clusters.rb
new file mode 100644
index 0000000..7be4c31
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110621230243_create_clusters.rb
@@ -0,0 +1,31 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateClusters < ActiveRecord::Migration
+  def self.up
+    create_table :clusters do |t|
+      t.string :name
+      t.integer :controller_id
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :clusters
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110621230340_create_shards.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110621230340_create_shards.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110621230340_create_shards.rb
new file mode 100644
index 0000000..2a0ff0a
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110621230340_create_shards.rb
@@ -0,0 +1,34 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateShards < ActiveRecord::Migration
+  def self.up
+    create_table :shards do |t|
+      t.integer :status
+      t.string :blur_version
+      t.string :node_name
+      t.string :node_location
+      t.integer :cluster_id
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :shards
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110622025021_update_columns_on_blur_zookeeper_instances.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110622025021_update_columns_on_blur_zookeeper_instances.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110622025021_update_columns_on_blur_zookeeper_instances.rb
new file mode 100644
index 0000000..e95a2b9
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110622025021_update_columns_on_blur_zookeeper_instances.rb
@@ -0,0 +1,38 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class UpdateColumnsOnBlurZookeeperInstances < ActiveRecord::Migration
+  def self.up
+    add_column :blur_zookeeper_instances, :name, :string
+
+    remove_column :blur_zookeeper_instances, :port
+    remove_column :blur_zookeeper_instances, :created_at
+    remove_column :blur_zookeeper_instances, :updated_at
+
+    rename_column :blur_zookeeper_instances, :host, :url
+  end
+
+  def self.down
+    remove_column :blur_zookeeper_instances, :name
+
+    add_column :blur_zookeeper_instances, :port, :string
+    add_column :blur_zookeeper_instances, :created_at, :datetime
+    add_column :blur_zookeeper_instances, :updated_at, :datetime
+
+    rename_column :blur_zookeeper_instances, :url, :host
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110623200720_add_status_column_to_zookeeper_instance.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110623200720_add_status_column_to_zookeeper_instance.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110623200720_add_status_column_to_zookeeper_instance.rb
new file mode 100644
index 0000000..e744c0b
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110623200720_add_status_column_to_zookeeper_instance.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddStatusColumnToZookeeperInstance < ActiveRecord::Migration
+  def self.up
+    add_column :blur_zookeeper_instances, :status, :integer
+  end
+
+  def self.down
+    remove_column :blur_zookeeper_instances, :status
+  end
+end


Mime
View raw message