incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [44/50] [abbrv] Initial Blur Console commit.
Date Fri, 17 May 2013 03:25:11 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/blur_query.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/blur_query.rb b/blur-admin/app/models/blur_query.rb
deleted file mode 100644
index a042aae..0000000
--- a/blur-admin/app/models/blur_query.rb
+++ /dev/null
@@ -1,75 +0,0 @@
-require 'blur_thrift_client'
-
-class BlurQuery < ActiveRecord::Base
-  include ActionView::Helpers::NumberHelper
-  belongs_to :blur_table
-  has_one :cluster, :through => :blur_table
-  has_one :zookeeper, :through => :cluster
-
-  def cancel
-    begin
-      BlurThriftClient.client(blur_table.zookeeper.blur_urls).cancelQuery self.blur_table.table_name, self.uuid
-      return true
-    rescue Exception => e
-      logger.error "Exception in BlurQueries.cancel:"
-      logger.error e
-      return false
-    end
-  end
-
-  def state_str
-    case read_attribute(:state)
-      when 0 then "Running"
-      when 1 then "Interrupted"
-      when 2 then "Complete"
-      when 3 then "Marked Complete by Agent"
-      else nil
-    end
-  end
-
-  def complete
-    if self.total_shards == 0
-      0
-    else
-      self.complete_shards / self.total_shards.to_f
-    end
-  end
-
-  def summary(user)
-    summary_hash =
-    {
-      :id => id,
-      :can_update => user.can?(:update, :blur_queries),
-      :userid => print_value(userid),
-      :query => print_value(query_string),
-      :tablename => print_value(blur_table.table_name),
-      :start => print_value(start, 0),
-      :time => created_at.getlocal.strftime('%r'),
-      :status => summary_state,
-      :state => state_str
-    }
-    summary_hash.delete(:query) if user.cannot?(:index, :blur_queries, :query_string)
-    summary_hash
-  end
-
-  private
-
-  def summary_state
-    if state == 0
-      formattedNumber = "%01d" % (100 * complete)
-      formattedNumber + '%'
-    elsif state == 1
-      "(Interrupted) - #{number_to_percentage(100 * complete, :precision => 0)}"
-    elsif state == 3
-      "Marked Complete by Agent"
-    else
-      "Complete"
-    end
-  end
-
-  def print_value(conditional, default_message = "Not Available")
-    return default_message unless conditional
-    return conditional unless block_given?
-    yield
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/blur_shard.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/blur_shard.rb b/blur-admin/app/models/blur_shard.rb
deleted file mode 100644
index 48f48e3..0000000
--- a/blur-admin/app/models/blur_shard.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class BlurShard < ActiveRecord::Base
-  after_destroy :destroy_parent_cluster
-
-  belongs_to :cluster
-
-  has_one :zookeeper, :through => :cluster
-
-  private
-  def destroy_parent_cluster
-    self.cluster.destroy if self.cluster.blur_shards.count <= 0
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/blur_table.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/blur_table.rb b/blur-admin/app/models/blur_table.rb
deleted file mode 100644
index fd8a425..0000000
--- a/blur-admin/app/models/blur_table.rb
+++ /dev/null
@@ -1,96 +0,0 @@
-class BlurTable < ActiveRecord::Base
-  require 'blur_thrift_client'
-
-  belongs_to :cluster
-  has_many :blur_queries, :dependent => :destroy
-  has_many :searches, :dependent => :destroy
-  has_one :zookeeper, :through => :cluster
-
-  scope :deleted, where("table_status=?", 0)
-  scope :disabled, where("table_status=?", 2)
-  scope :active, where("table_status=?", 4)
-
-  attr_accessor :query_count
-
-  def as_json(options={})
-    serial_properties = super(options)
-    serial_properties.delete('server')
-    serial_properties.delete('table_schema')
-    serial_properties.delete('updated_at')
-    serial_properties['queried_recently'] = self.query_count > 0
-
-    host_count = self.hosts.keys.length
-    shard_count = 0
-    self.hosts.values.each{ |shards| shard_count += shards.length }
-
-    serial_properties['server_info'] = host_count.to_s + ' | ' + shard_count.to_s
-    serial_properties['comments'] = self.comments
-    serial_properties
-  end
-
-  # Returns a map of host => [shards] of all hosts/shards associated with the table
-  def hosts
-    read_attribute(:server).blank? ? {} : (JSON.parse read_attribute(:server))
-  end
-
-  def schema
-    return nil if self.table_schema.blank?
-    # sort columns inline
-    sorted_schema = (JSON.parse self.table_schema).each{|n| n['columns'].sort_by!{|k| k['name']}}
-    if block_given?
-      sorted_schema.sort &Proc.new
-    else
-      # sort column families
-      sorted_schema.sort_by{|k| k['name']}
-    end
-  end
-
-  def record_count
-    read_attribute(:record_count).to_s.reverse.gsub(%r{([0-9]{3}(?=([0-9])))}, "\\1#{','}").reverse
-  end
-
-  def row_count
-    read_attribute(:row_count).to_s.reverse.gsub(%r{([0-9]{3}(?=([0-9])))}, "\\1#{','}").reverse
-  end
-
-  def is_enabled?
-    self.table_status == 4
-  end
-
-  def is_disabled?
-    self.table_status == 2
-  end
-
-  def is_deleted?
-    self.table_status == 0
-  end
-
-  def terms(blur_urls,family,column,startWith,size)
-    BlurThriftClient.client(blur_urls).terms(self.table_name, family, column, startWith, size)
-  end
-
-  def enable(blur_urls)
-    begin
-      BlurThriftClient.client(blur_urls).enableTable self.table_name
-    ensure
-      return self.is_enabled?
-    end
-  end
-
-  def disable(blur_urls)
-    begin
-      BlurThriftClient.client(blur_urls).disableTable self.table_name
-    ensure
-      return self.is_disabled?
-    end
-  end
-
-  def blur_destroy(underlying=false, blur_urls)
-    begin
-      BlurThriftClient.client(blur_urls).removeTable self.table_name, underlying
-      return true
-    rescue
-      return false
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/cluster.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/cluster.rb b/blur-admin/app/models/cluster.rb
deleted file mode 100644
index 5cdaabb..0000000
--- a/blur-admin/app/models/cluster.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-  class Cluster < ActiveRecord::Base
-  belongs_to :zookeeper
-  has_many :blur_shards, :dependent => :destroy
-  has_many :blur_tables, :dependent => :destroy, :order => 'table_name'
-  has_many :blur_queries, :through => :blur_tables, :dependent => :destroy
-
-  attr_accessor :can_update
-
-  def as_json(options={})
-    serial_properties = super(options)
-
-    if options[:blur_tables]
-      serial_properties["cluster_queried"] = self.query_status
-      serial_properties["can_update"] = self.can_update
-    else
-      serial_properties["shard_blur_version"] = self.shard_version
-      serial_properties["shard_status"] = self.shard_status
-    end
-
-    serial_properties
-  end
-
-  def shard_version
-    versions = self.blur_shards.collect{ |shard| shard.blur_version }.uniq
-    if versions.length < 1
-      "No shards in this Cluster!"
-    else
-      versions.length == 1 ? versions.first : "Inconsistent Blur Versions"
-    end
-  end
-
-  def shard_status
-    shard_total = self.blur_shards.length
-    shards_online = self.blur_shards.select{ |shard| shard.shard_status == 1 }.length
-    "#{shards_online} | #{shard_total}"
-  end
-
-  def query_status
-    self.blur_tables.select{ |table| table.query_count > 0 }.length > 0
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/hdfs.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/hdfs.rb b/blur-admin/app/models/hdfs.rb
deleted file mode 100644
index 4a6b64e..0000000
--- a/blur-admin/app/models/hdfs.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class Hdfs < ActiveRecord::Base
-  has_many :hdfs_stats
-
-  def most_recent_stats
-    self.hdfs_stats.last
-  end
-
-  def recent_stats
-    return false unless self.hdfs_stats.last
-    self.hdfs_stats.last.created_at > 1.minute.ago
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/hdfs_stat.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/hdfs_stat.rb b/blur-admin/app/models/hdfs_stat.rb
deleted file mode 100644
index aa0326d..0000000
--- a/blur-admin/app/models/hdfs_stat.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class HdfsStat < ActiveRecord::Base
-  belongs_to :hdfs
-
-  def capacity
-  	self.present_capacity.to_f / 1024**3
-  end
-
-  def used
-	  self.dfs_used_real.to_f / 1024**3
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/license.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/license.rb b/blur-admin/app/models/license.rb
deleted file mode 100644
index fec7c98..0000000
--- a/blur-admin/app/models/license.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class License < ActiveRecord::Base
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/preference.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/preference.rb b/blur-admin/app/models/preference.rb
deleted file mode 100644
index 03c9521..0000000
--- a/blur-admin/app/models/preference.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class Preference < ActiveRecord::Base
-  belongs_to :user
-  validates :pref_type, :uniqueness => {:scope => :user_id}, :presence => true
-  serialize :value
-
-  # Scopes allow you to call user.preferences.column
-  # or user.preferences.filter
-  scope :column, where(:pref_type => 'column')
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/search.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/search.rb b/blur-admin/app/models/search.rb
deleted file mode 100644
index 57d1b0c..0000000
--- a/blur-admin/app/models/search.rb
+++ /dev/null
@@ -1,72 +0,0 @@
-class Search < ActiveRecord::Base
-  belongs_to :blur_table
-  belongs_to :user
-
-  before_save :marshal_columns
-
-  attr_accessor :column_object
-
-  def blur_query
-    b = Blur::BlurQuery.new( :simpleQuery  => Blur::SimpleQuery.new(:queryStr => query,
-                      :superQueryOn => super_query?),
-                      :fetch        => fetch,
-                      :start        => offset,
-                      :uuid         => Time.now.to_i*1000 + rand(1000),
-                      :selector     => selector,
-                      :userContext  => User.find(user_id).username)
-    b.simpleQuery.postSuperFilter = post_filter if !post_filter.blank?
-    b.simpleQuery.preSuperFilter = pre_filter if !pre_filter.blank?
-    b
-  end
-
-  def column_object
-    @column_object = @column_object || (columns ? JSON.parse(columns) : [])
-  end
-
-  def column_families
-    column_object.collect{|value| value.split('_-sep-_')[1] if value.starts_with?('family')}.compact
-  end
-
-  def columns_hash
-    # hash with key = column_family and value = array of columns
-    # just columns without column families, and with 'recordId' added in
-    families = column_families
-    cols = {}
-    column_object.each do |raw_column|
-      parts = raw_column.split('_-sep-_')
-      if parts[0] == 'column' and !families.include?(parts[1])
-        cols[parts[1]] ||= ['recordId']
-        cols[parts[1]] << parts[2]
-      end
-    end
-    cols
-  end
-
-  def selector
-    Blur::Selector.new  :columnFamiliesToFetch => column_families,
-                        :columnsToFetch        => columns_hash,
-                        :recordOnly            => record_only?
-  end
-  def fetch_results(table_name, blur_urls)
-    BlurThriftClient.client(blur_urls).query(table_name, blur_query)
-  end
-
-  def schema(blur_table)
-    tmp_schema = columns_hash
-    tmp_schema.clone.each do |family,cols|
-      cols.collect!{|v| {"name" => v}}
-      tmp_schema[family] = {"name" => family, "columns" => cols}
-    end
-    column_families.each do |family|
-      col_fam = blur_table.schema.select{|v| v['name'] == family}.first
-      col_fam['columns'].insert(0,{"name" => 'recordId'})
-      tmp_schema[family] = col_fam
-    end
-    tmp_schema.sort
-  end
-
-  private
-  def marshal_columns
-    write_attribute(:columns, column_object.to_json) if column_object
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/user.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/user.rb b/blur-admin/app/models/user.rb
deleted file mode 100644
index 083d85f..0000000
--- a/blur-admin/app/models/user.rb
+++ /dev/null
@@ -1,66 +0,0 @@
-class User < ActiveRecord::Base
-  attr_accessible :email, :username, :name, :password, :password_confirmation, :roles
-
-  has_many :searches
-  has_many :preferences
-  has_many :audits
-
-  email_regex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+/
-
-  acts_as_authentic do |c|
-    c.merge_validates_format_of_email_field_options({:with => email_regex} )
-  end
-
-  # declare the valid roles -- do not change the order if you add more
-  # roles later, always append them at the end!
-  ROLES = %w[editor admin reader auditor searcher]
-
-  def ability
-    @ability ||= Ability.new(self)
-  end
-
-  delegate :can?, :cannot?, :to => :ability
-
-  #returns the array of saved cols
-  def column_preference
-    Preference.find_or_create_by_user_id_and_pref_type(self.id, 'column') do |preference|
-      preference.name = 'column'
-      preference.value = []
-    end
-  end
-  #returns the zookeeper preference set by the user
-  def zookeeper_preference
-    Preference.find_or_create_by_user_id_and_pref_type(self.id, 'zookeeper') do |preference|
-      preference.name = '0'
-      preference.value = nil
-    end
-  end
-
-  ### ROLE AUTHENTICATION ###
-
-  def roles=(roles)
-    self.roles_mask = (roles & ROLES).map { |r| 2**ROLES.index(r) }.sum
-  end
-
-  def roles
-    ROLES.reject do |r|
-      ((roles_mask || 0) & 2**ROLES.index(r)).zero?
-    end
-  end
-
-  def is?(role)
-    roles.include?(role.to_s)
-  end
-
-  # the roles are virtual attributes needed to use form helpers
-  ROLES.each do |role|
-    #truthy style methods role?
-    define_method role + '?' do
-      return roles.include?(role)
-    end
-    #form helper methods (same as above)
-    define_method role do
-      return roles.include?(role)
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/user_session.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/user_session.rb b/blur-admin/app/models/user_session.rb
deleted file mode 100644
index 6f5bdb6..0000000
--- a/blur-admin/app/models/user_session.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class UserSession < Authlogic::Session::Base
-  def to_key
-    new_record? ? nil : [ self.send(self.class.primary_key) ]
-  end
-
-  def persisted?
-    false
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/zookeeper.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/zookeeper.rb b/blur-admin/app/models/zookeeper.rb
deleted file mode 100644
index 52c8794..0000000
--- a/blur-admin/app/models/zookeeper.rb
+++ /dev/null
@@ -1,66 +0,0 @@
-class Zookeeper < ActiveRecord::Base
-  has_many :blur_controllers, :dependent => :destroy
-  has_many :clusters, :dependent => :destroy, :order => 'name'
-  has_many :blur_shards, :through => :clusters
-  has_many :blur_tables, :through => :clusters
-  has_many :blur_queries, :through => :blur_tables
-
-  QUERY = "
-    select
-      z.name,
-      z.zookeeper_status,
-      z.id,
-      v.controller_version,
-      c.controller_offline_node,
-      c.controller_total,
-      v.shard_version,
-      s.shard_offline_node,
-      s.shard_total,
-      q.long_running_queries
-    from
-      zookeepers z,
-      (select z1.id, count(distinct c1.blur_version) as controller_version, count(distinct s1.blur_version) as shard_version from zookeepers z1 left join blur_controllers c1 on (z1.id = c1.zookeeper_id), zookeepers z2 left join clusters c2 on (z2.id = c2.zookeeper_id) left join blur_shards s1 on (c2.id = s1.cluster_id) where z1.id = z2.id group by z1.id) v,
-      (select z2.id, CAST(sum(if((c3.controller_status = 0 or c3.controller_status = 2), 1, 0)) AS SIGNED) as controller_offline_node, count(c3.id) as controller_total from zookeepers z2 left join blur_controllers c3 on (z2.id = c3.zookeeper_id) group by z2.id) c,
-      (select z3.id, CAST(sum(if((s2.shard_status = 0 or s2.shard_status = 2), 1, 0)) AS SIGNED) as shard_offline_node, count(s2.id) as shard_total from zookeepers z3 left join clusters c4 on (z3.id = c4.zookeeper_id) left join blur_shards s2 on (c4.id = s2.cluster_id) group by z3.id) s,
-      (select z4.id, CAST(sum(if(q1.state = 0 and q1.created_at < date_sub(utc_timestamp(), interval 1 minute), 1, 0)) AS SIGNED) as long_running_queries from zookeepers z4 left join clusters c5 on (z4.id = c5.zookeeper_id) left join blur_tables t1 on (c5.id = t1.cluster_id) left join blur_queries q1 on (t1.id = q1.blur_table_id) group by z4.id) q
-    where
-      z.id = v.id and
-      z.id = c.id and
-      z.id = s.id and
-      z.id = q.id
-    order by
-      z.id
-  "
-
-  def as_json(options={})
-    serial_properties = super(options)
-    serial_properties.delete('online_ensemble_nodes')
-    serial_properties['ensemble'] = JSON.parse self.online_ensemble_nodes
-    serial_properties
-  end
-
-  def self.dashboard_stats
-    zookeeper_results = []
-    connection = ActiveRecord::Base.connection()
-    connection.execute(QUERY).each(:as => :hash) { |row| zookeeper_results << row }
-    zookeeper_results
-  end
-
-  def refresh_queries(lower_range)
-    self.blur_queries.where("blur_queries.updated_at > ? and blur_tables.table_status = ?", lower_range, 4)
-  end
-
-  def long_running_queries(current_user)
-    self.blur_queries.where('created_at < ? and state = ?', 1.minute.ago, 0).collect{|query| query.summary(current_user)}
-  end
-
-  def clusters_with_query_status(current_user)
-    query_counts = BlurQuery.where("updated_at > '#{5.minutes.ago}'").group('blur_table_id').count
-    self.clusters.each do |cluster|
-      cluster.blur_tables.each do |table|
-        table.query_count = query_counts[table.id] || 0
-      end
-      cluster.can_update = current_user.editor?
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/audits/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/audits/index.html.haml b/blur-admin/app/views/audits/index.html.haml
deleted file mode 100644
index c5da6a9..0000000
--- a/blur-admin/app/views/audits/index.html.haml
+++ /dev/null
@@ -1,26 +0,0 @@
-- content_for :title, 'Audits'
-- content_for :javascript do
-  =javascript_include_tag 'audits.js'
-
-#audits_wrapper
-  %h2 Audits
-  #audits_table
-    %table.table.table-bordered.table-striped
-      %thead
-        %tr
-        - headers = ['Action Taken', 'Username', 'User','Zookeeper/Root Path', 'Model Affected', 'Mutation Type', 'Date']
-        - headers.each do |header|
-          %th
-            .header_content
-              %div=header
-              =render :partial => 'shared/icons'
-      %tbody
-        - for audit in @audits
-          %tr
-            %td= audit.action
-            %td= audit.user.username
-            %td= audit.user.name
-            %td= audit.zookeeper_affected
-            %td= audit.model_affected
-            %td= audit.mutation
-            %td= audit.created_at
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/blur_queries/_blur_query.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/blur_queries/_blur_query.html.haml b/blur-admin/app/views/blur_queries/_blur_query.html.haml
deleted file mode 100644
index 57d0931..0000000
--- a/blur-admin/app/views/blur_queries/_blur_query.html.haml
+++ /dev/null
@@ -1,27 +0,0 @@
-%tr[@blur_query]{'data-age' => Time.now - @blur_query.created_at }>
-  %td.userid= print_value(@blur_query.userid)
-  - if can? :index, :blur_queries, :query_string
-    - if @blur_query.query_string
-      %td.query_string{:title => format_title(@blur_query.query_string)}
-        = truncate(@blur_query.query_string, :length => 75, :ommision => "...")
-    - else
-      %td.query_string
-        = 'Not Available'
-  %td= print_value(@blur_query.blur_table.table_name)
-  %td.start= print_value(@blur_query.start)
-  %td.fetch_num= print_value(@blur_query.fetch_num)
-  %td
-    - if @blur_query.state == 0
-      = print_value(@blur_query.complete) {number_to_percentage(100 * @blur_query.complete, :precision => 0)}
-    - elsif @blur_query.state == 1
-      = print_value(@blur_query.complete) {number_to_percentage(100 * @blur_query.complete, :precision => 0)}
-      (Interrupted)
-    - else
-      Complete
-  %td.query-actions
-    - if can? :update, :blur_queries
-      - if @blur_query.state == 0
-        = form_tag zookeeper_blur_query_path(@blur_query), :method => :put, :remote => true, :class => :cancel do
-          = hidden_field_tag :cancel, true
-          = tag :input, :type => :button, :value => 'Cancel', :class => "cancel_query_button btn"
-    = link_to "More Info", show_blur_query_path(@blur_query), :class => 'more_info', :remote => true, :style => 'margin-right: 3px'

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/blur_queries/_show.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/blur_queries/_show.html.haml b/blur-admin/app/views/blur_queries/_show.html.haml
deleted file mode 100644
index 9d2248c..0000000
--- a/blur-admin/app/views/blur_queries/_show.html.haml
+++ /dev/null
@@ -1,118 +0,0 @@
-- empty_message = 'Not Available'
-
-%table#more-info-table.table.table-striped.table-condensed
-  %tbody
-    - if can? :show, :blur_queries, :query_string
-      %tr
-        %td{:class => "more-info-label"} Query String
-        %td
-          -if @blur_query.query_string
-            =@blur_query.query_string
-          -else
-            =empty_message
-    %tr
-      %td{:class => "more-info-label"} UUID
-      %td
-        -if @blur_query.uuid
-          =@blur_query.uuid
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Status
-      %td
-        -if @blur_query.state
-          = @blur_query.state_str
-        -else
-          = empty_message
-    %tr
-      %td{:class => "more-info-label"} Created At
-      %td
-        -if @blur_query.created_at
-          =@blur_query.created_at.in_time_zone("Eastern Time (US & Canada)")
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Table Name
-      %td
-        -if @blur_query.blur_table.table_name
-          =@blur_query.blur_table.table_name
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Super Query
-      %td
-        -if @blur_query.super_query_on
-          On
-        -elsif @blur_query.super_query_on == false
-          Off
-        -else
-          =empty_message
-          
-    %tr
-      %td{:class => "more-info-label"} Record Only
-      %td
-        -if @blur_query.record_only
-          On
-        -elsif @blur_query.record_only == false
-          Off
-        -else
-          =empty_message
-          
-    %tr
-      %td{:class => "more-info-label"} Facets
-      %td
-        -if @blur_query.facets
-          =@blur_query.facets
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Start
-      %td
-        -if @blur_query.start
-          =@blur_query.start
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Fetch Number
-      %td
-        -if @blur_query.fetch_num
-          =@blur_query.fetch_num
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Pre Filters
-      %td
-        -if @blur_query.pre_filters
-          %span{:title=>@blur_query.pre_filters}
-            =truncate(@blur_query.pre_filters, :length => 50, :ommision => "...")
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Post Filters
-      %td
-        -if @blur_query.post_filters
-          %span{:title=>@blur_query.post_filters}
-            =truncate(@blur_query.post_filters, :length => 50, :ommision => "...")
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Selector Column Families
-      %td
-        -if @blur_query.selector_column_families
-          =@blur_query.selector_column_families
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} Selector columns
-      %td
-        -if @blur_query.selector_columns
-          =@blur_query.selector_columns
-        -else
-          =empty_message
-    %tr
-      %td{:class => "more-info-label"} User ID
-      %td
-        -if @blur_query.userid
-          =@blur_query.userid
-        -else
-          =empty_message

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/blur_queries/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/blur_queries/index.html.haml b/blur-admin/app/views/blur_queries/index.html.haml
deleted file mode 100644
index b982f1d..0000000
--- a/blur-admin/app/views/blur_queries/index.html.haml
+++ /dev/null
@@ -1,30 +0,0 @@
-- content_for :title, 'Blur Queries'
-
-- content_for :javascript do
-  = javascript_include_tag 'blur_queries'
-
-#blur_queries_wrapper
-  .range_select
-    Queries in the last:
-    %select.time_range
-      =options_for_select({ "1 min" => 1, "5 min" => 5, "10 min" => 10, "30 min" => 30 }, 1)
-    %form.filters
-      Quick Filter Status by:
-      %input.filter_option{:type => "radio", :name => "filter", "data-filter" => "Running"}
-      Running
-      %input.filter_option{:type => "radio", :name => "filter", "data-filter" => "Complete"}
-      Complete
-      %input.filter_option{:type => "radio", :name => "filter", "data-filter" => "", :checked => true}
-      None
-  %table#queries-table.table.table-striped.table-bordered
-    %thead
-      %tr
-        - headers = ['User ID']
-        - headers << 'Query' if can? :index, :blur_queries, :query_string
-        - headers.push 'Table Name', 'Starting Record', 'Time Submitted', 'Status', 'State', 'Actions/Info'
-        - headers.each do |header|
-          %th
-            .header_content
-              %div=header
-              =render :partial => 'shared/icons'
-    %tbody

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/blur_tables/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/blur_tables/index.html.haml b/blur-admin/app/views/blur_tables/index.html.haml
deleted file mode 100644
index 1db32b7..0000000
--- a/blur-admin/app/views/blur_tables/index.html.haml
+++ /dev/null
@@ -1,15 +0,0 @@
-- content_for :title, 'Blur Tables'
-- content_for :javascript do
-  =javascript_include_tag 'blur_table/blur_tables'
-
-.blur_table_page
-  %ul#blur_tables.nav-tabs.nav
-    - @clusters.each_with_index do |cluster,i|
-      %li#cluster_tab{:id=>cluster.id, :class =>("active" unless i != 0)}
-        %a{:href=>"#cluster_#{cluster.id}", "data-toggle"=>"tab"}
-          %span.cluster-title= cluster.name
-          %i.icon-exclamation-sign.queries-running-icon{:style=>'display:none', :title=>'Has been queried within last 5 minutes'}
-          %i.icon-lock.safemode-icon{:style=>'display:none', :title=>'In Safe Mode'}
-  #tables-wrapper.tab-content
-    Loading Tables...
-    %img#loading-spinner{:alt => "Loading...", :src=> "/assets/loader.gif"}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/errors/error_404.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/errors/error_404.html.haml b/blur-admin/app/views/errors/error_404.html.haml
deleted file mode 100644
index 8c4cb10..0000000
--- a/blur-admin/app/views/errors/error_404.html.haml
+++ /dev/null
@@ -1,5 +0,0 @@
-%title Blur Console - Error 404
-#error_wrapper
-  %img{:src => image_path('404_file_not_found.png'), :title => 'File Not Found'}
-  %h3 We encountered an error trying to find the page or file you were looking for.
-  %h3 Please make sure you typed in the URL or file name correctly.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/errors/error_422.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/errors/error_422.html.haml b/blur-admin/app/views/errors/error_422.html.haml
deleted file mode 100644
index db9548a..0000000
--- a/blur-admin/app/views/errors/error_422.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-%title Blur Console - Error 422
-#error_wrapper
-  %h1 The change you wanted was rejected.
-  %h3 Maybe you tried to change something you didn't have access to.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/errors/error_500.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/errors/error_500.html.haml b/blur-admin/app/views/errors/error_500.html.haml
deleted file mode 100644
index 7e473e3..0000000
--- a/blur-admin/app/views/errors/error_500.html.haml
+++ /dev/null
@@ -1,11 +0,0 @@
-%title Blur Console - Error 500
-#error_wrapper
-  %h2 We're sorry, but there was an error with our server.
-  %h3 Please go back or refresh the page.
-  %img{:src => image_path('server_error.png')}
-  - if (current_user && current_user.is?(:admin) && @error != nil)
-    #error_message
-      = @error.message
-    - @error.backtrace.each do |line|
-      = line
-      %br
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/_expand.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/_expand.html.haml b/blur-admin/app/views/hdfs/_expand.html.haml
deleted file mode 100644
index ada44f8..0000000
--- a/blur-admin/app/views/hdfs/_expand.html.haml
+++ /dev/null
@@ -1,12 +0,0 @@
--if @children.blank?
-  .noFiles No Files Found
--else
-  %ul
-    - @children.each do |child|
-      -if child[:is_dir]
-        %li.osxSelectable.folder{:hdfs_id=>@hdfs_id, :hdfs_path=>@path + child[:name]}
-          =link_to(child[:name], expand_hdfs_path(@hdfs_id, @path + child[:name]), :title=>child[:name])
-      -else
-        %li.osxSelectable.file{:hdfs_id=>@hdfs_id, :hdfs_path=>@path + child[:name]}
-          =link_to(child[:name], file_info_hdfs_path(@hdfs_id, @path + child[:name]), :title=>child[:name])
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/_file_info.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/_file_info.html.haml b/blur-admin/app/views/hdfs/_file_info.html.haml
deleted file mode 100644
index 680ffe4..0000000
--- a/blur-admin/app/views/hdfs/_file_info.html.haml
+++ /dev/null
@@ -1,26 +0,0 @@
-#file_table
-  %table
-    %tr
-      %td Length
-      %td= number_to_human_size @stat.length, :precision => 4
-    %tr
-      %td Directory
-      %td= @stat.isdir
-    %tr
-      %td Block Reps
-      %td= number_with_delimiter @stat.block_replication, :delimiter => ','
-    %tr
-      %td Block Size
-      %td= number_with_delimiter @stat.blocksize, :delimiter => ','
-    %tr
-      %td Last Modified
-      %td= Time.at(@stat.modification_time/1000.0).strftime("%D %r")
-    %tr
-      %td Owner
-      %td= @stat.owner
-    %tr
-      %td Group
-      %td= @stat.group
-    %tr
-      %td Permission
-      %td= @stat.permission
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/_folder_info.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/_folder_info.html.haml b/blur-admin/app/views/hdfs/_folder_info.html.haml
deleted file mode 100644
index 89f67ce..0000000
--- a/blur-admin/app/views/hdfs/_folder_info.html.haml
+++ /dev/null
@@ -1,31 +0,0 @@
-.info-modal
-  .search-info-section
-    #file_table
-      %table.table-condensed.table.table-striped
-        %tr
-          %td Directory
-          %td= @stat.isdir
-        %tr
-          %td Files Count
-          %td#file_count Calculating...
-        %tr
-          %td Folders Count
-          %td#folder_count Calculating...
-        %tr
-          %td Files Size
-          %td#file_size Calculating...
-        %tr
-          %td Last Modified
-          %td= Time.at(@stat.modification_time/1000.0).strftime("%D %r")
-        %tr
-          %td Owner
-          %td= @stat.owner
-        %tr
-          %td Group
-          %td= @stat.group
-        %tr
-          %td Permission
-          %td= @stat.permission
-  .search-info-section
-    .radial-graph
-      Loading...
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/_info.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/_info.html.haml b/blur-admin/app/views/hdfs/_info.html.haml
deleted file mode 100644
index 1e70ab3..0000000
--- a/blur-admin/app/views/hdfs/_info.html.haml
+++ /dev/null
@@ -1,43 +0,0 @@
-.info-modal
-  .search-info-section
-    %table#more-info-table.table.table-striped.table-condensed
-      %tbody
-        %tr
-          %td.more-info-label Configured Capacity
-          %td= number_to_human_size @hdfs_stat.config_capacity
-        %tr
-          %td.more-info-label Present Capacity
-          %td= number_to_human_size @hdfs_stat.present_capacity
-        %tr
-          %td.more-info-label Amount Used (With Replication)
-          %td= number_to_human_size @hdfs_stat.dfs_used_real
-        %tr
-          %td.more-info-label Amount Used (Logical)
-          %td= number_to_human_size @hdfs_stat.dfs_used_logical
-        %tr
-          %td.more-info-label Amount Remaining
-          %td= number_to_human_size @hdfs_stat.dfs_remaining
-        %tr
-          %td.more-info-label Percent Used
-          %td= "#{@hdfs_stat.dfs_used_percent}%"
-        %tr
-          %td.more-info-label Under Replicated Blocks
-          %td= @hdfs_stat.under_replicated
-        %tr
-          %td.more-info-label Corrupt Blocks
-          %td= @hdfs_stat.corrupt_blocks
-        %tr
-          %td.more-info-label Missing Blocks
-          %td= @hdfs_stat.missing_blocks
-        %tr
-          %td.more-info-label Total Nodes
-          %td= @hdfs_stat.total_nodes < 0 ? 'Unavailable' : @hdfs_stat.total_nodes
-        %tr
-          %td.more-info-label Dead Nodes
-          %td= @hdfs_stat.dead_nodes < 0 ? 'Unavailable' : @hdfs_stat.dead_nodes
-        %tr
-          %td.more-info-label Live Nodes
-          %td= @hdfs_stat.live_nodes < 0 ? 'Unavailable' : @hdfs_stat.live_nodes
-  .search-info-section
-    .radial-graph
-      Loading...
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/_upload.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/_upload.html.haml b/blur-admin/app/views/hdfs/_upload.html.haml
deleted file mode 100644
index 44d1757..0000000
--- a/blur-admin/app/views/hdfs/_upload.html.haml
+++ /dev/null
@@ -1,7 +0,0 @@
--if not defined? @error
-  :javascript
-    parent.window.finishUploading('#{@path}');
--else
-  :javascript
-    parent.window.uploadFailed('#{@error}');
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/_upload_form.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/_upload_form.html.haml b/blur-admin/app/views/hdfs/_upload_form.html.haml
deleted file mode 100644
index 2cccf77..0000000
--- a/blur-admin/app/views/hdfs/_upload_form.html.haml
+++ /dev/null
@@ -1,10 +0,0 @@
-#upload-file
-  #status
-  = form_tag upload_hdfs_path, :method => 'post', :multipart => true, :target => 'upload_frame', :id => 'upload-form' do
-    = file_field_tag 'upload', :id => 'file-input'
-    %p File must be less than 25Mb
-    = hidden_field_tag 'hdfs_id', nil, :id => 'hdfs-id-input'
-    = hidden_field_tag 'path', nil, :id => 'fpath-input'
-  %iframe#upload_frame{:name=>'upload_frame',:style=>'display:none'}
-  #upload_file_warning.hidden
-    Warning: File or folder with this name already exists. Uploading this file will replace the current one.

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs/index.html.haml b/blur-admin/app/views/hdfs/index.html.haml
deleted file mode 100644
index 8070148..0000000
--- a/blur-admin/app/views/hdfs/index.html.haml
+++ /dev/null
@@ -1,11 +0,0 @@
-- content_for :title, 'HDFS'
-- content_for :javascript do
-  =javascript_include_tag 'hdfs'
-
-#hdfs_wrapper
-  #hdfs_browser{:hdfs_editor =>current_user.editor.to_s}
-    %ul#top_level
-      - @hdfs.each do |hdfs|
-        %li.osxSelectable.hdfs_instance{:hdfs_id=>hdfs.id, :hdfs_name=>hdfs.name, :hdfs_path=>'/'}
-          =link_to(hdfs.name, expand_hdfs_path(hdfs.id), :title=>hdfs.name)
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs_metrics/_hdfs_graph.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs_metrics/_hdfs_graph.html.haml b/blur-admin/app/views/hdfs_metrics/_hdfs_graph.html.haml
deleted file mode 100644
index f47ce61..0000000
--- a/blur-admin/app/views/hdfs_metrics/_hdfs_graph.html.haml
+++ /dev/null
@@ -1,41 +0,0 @@
-.graph_instance{:id => hdfs_instance.id}
-  .graph_title
-    %img.hidden{:class => "loading-spinner",
-      :src => image_path("loader.gif"),
-      :alt => "Loading..."}
-    %h3
-      = "#{hdfs_instance.name} (#{hdfs_instance.host})"
-  .graph_content
-    .graph_data.tabbable.tabs-left
-      %ul.nav.nav-tabs
-        %li.active
-          %a{:href => "#disk_#{hdfs_instance.id}", 'data-toggle' => 'tab', 'data-action' => 'disk'}
-            Capacity/Usage
-        %li
-          %a{:href => "#nodes_#{hdfs_instance.id}", 'data-toggle' => 'tab', 'data-action' => 'nodes'}
-            Live/Dead Nodes
-        %li
-          %a{:href => "#block_#{hdfs_instance.id}", 'data-toggle' => 'tab', 'data-action' => 'block'}
-            Block Status
-      .tab-content
-        %div.tab-pane.active{:id => "disk_#{hdfs_instance.id}"}
-          .graph
-            Loading Graph...
-        %div.tab-pane{:id => "nodes_#{hdfs_instance.id}"}
-          .graph
-            Loading Graph...
-        %div.tab-pane{:id => "block_#{hdfs_instance.id}"}
-          .graph
-            Loading Graph...
-      .graph_info
-        %table.graph-info-table
-          %tbody
-            %tr
-              %td.graph-legend
-              %td
-                .slider-info{:id => hdfs_instance.id}
-                  %input{:class=>"min-date", :type=>"text", :placeholder => 'from'}
-                  to
-                  %input{:class=>"max-date", :type=>"text", :placeholder => 'to'}
-              %td.slider-box
-                .slider{:id => hdfs_instance.id}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs_metrics/_hdfs_joined_graph.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs_metrics/_hdfs_joined_graph.html.haml b/blur-admin/app/views/hdfs_metrics/_hdfs_joined_graph.html.haml
deleted file mode 100644
index cc0e3ca..0000000
--- a/blur-admin/app/views/hdfs_metrics/_hdfs_joined_graph.html.haml
+++ /dev/null
@@ -1,27 +0,0 @@
-.joined_instance{:id => 'joinedGraph'}
-  .graph_title
-    %h3
-    %i.icon-remove-sign
-  .graph_content
-    .graph_select
-    .graph_data.tabbable.tabs-left
-      %ul.nav.nav-tabs
-        %li.active
-          %a{:href => '#disk_joined', 'data-toggle' => 'tab', 'data-action' => 'disk'}
-            Capacity/Usage
-        %li
-          %a{:href => '#nodes_joined', 'data-toggle' => 'tab', 'data-action' => 'nodes'}
-            Live/Dead Nodes
-        %li
-          %a{:href => '#block_joined', 'data-toggle' => 'tab', 'data-action' => 'block'}
-            Under Replicated/Corrupt Blocks
-      .tab-content
-        %div.tab-pane.active#disk_joined
-          .graph
-            Loading Graph...
-        %div.tab-pane#nodes_joined
-          .graph
-            Loading Graph...
-        %div.tab-pane#block_joined
-          .graph
-            Loading Graph...  
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/hdfs_metrics/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/hdfs_metrics/index.html.haml b/blur-admin/app/views/hdfs_metrics/index.html.haml
deleted file mode 100644
index 2fc9609..0000000
--- a/blur-admin/app/views/hdfs_metrics/index.html.haml
+++ /dev/null
@@ -1,7 +0,0 @@
-- content_for :title, 'HDFS Metrics'
-- content_for :javascript do
-  =javascript_include_tag 'hdfs_metrics'
-#metrics_page_wrapper
-  .all_graph
-    -@hdfs_index.each_with_index do |hdfs,i|
-      = render :partial => 'hdfs_graph', :locals => { :hdfs_instance => hdfs }

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/layouts/_help_menu.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/layouts/_help_menu.html.haml b/blur-admin/app/views/layouts/_help_menu.html.haml
deleted file mode 100644
index 0ff651a..0000000
--- a/blur-admin/app/views/layouts/_help_menu.html.haml
+++ /dev/null
@@ -1,202 +0,0 @@
-= stylesheet_link_tag 'application'
-= javascript_include_tag 'help'
-%title
-  Help | Blur Console
-%html{:style => 'min-width: 0px;'}
-  %body
-    #help-window
-      .help-section
-        %h3.help-label Navigation Help
-        .help-content{:style => 'display: none'}
-          .head
-            The navigation bar has three major functionalities:
-          .body
-            %ol
-              %li It is a means to traverse the application
-              %li
-                It gives the user the ability to change the "zookeeper" context of the application:
-                %ul
-                  %li The context can be switched by using the "Current Zookeeper Instance" selector located at the center of the navigation bar.
-                  %li This selector is a list of all zookeepers that your application is currently tracking.
-                  %li This selector is present on every page that displays zookeeper relevant information.
-                  %li Selecting a new zookeeper will refresh the content of the current page using the new zookeeper.
-              %li
-                It has a link to your "User" page:
-                %ul
-                  %li This is located in the top right, next to the "logout" button.
-      .help-section
-        %h3.help-label Dashboard Help
-        .help-content{ :style =>  @tab != 'dashboard' && 'display: none' }
-          .head
-            The "Dashboard" page is a high level view of the overall health of your system.
-            Each box in the Zookeeper section represents a different zookeeper and displays information on that zookeeper.
-          .body
-            %ol
-              %li
-                The header of each zookeeper box displays the current health of that particular zookeeper.
-                %ul
-                  %li A green check means that the system is healthy.
-                  %li A yellow exclamation means that some of the zookeeper nodes are offline but it is still in quorum.
-                  %li A red question mark means that quorom is not being met.
-                  %li A red 'X' means that the zookeeper instance cannot be reached or is completely offline.
-              %li
-                Each circle represents the population of that particular piece of blur. The green portions are the healthy nodes and the red portions are the offline nodes.
-                %ul
-                  %li The circle's values correlate to the offline and online rows in the center of the widget.
-              %li
-                The "version" row indicates whether or not all of the nodes (shards and controllers respectively) are running the same version of blur.
-              %li Clicking on a Zookeeper box will take the user to the Environment page of that particular blur instance.
-              %li
-                A warning will appear at the bottom of the box if there are any "long running" queries.
-                %ul
-                  %li This warning is a count of the number queries that have been running for more than a minute. Clicking the number will bring up a dialog with the list of long running queries.
-
-          .head
-            Each box in the Hdfs section represents a different hdfs instance and displays information about it.
-          .body
-            %ol
-              %li The header of each hdfs box displays whether or not the system is online.
-              %li The information on the left represents whether or not hdfs blocks are missing or under replicated.
-              %li The node bar shows the relative populations of online and offline nodes. The green representing online and the red representing offline.
-              %li The "dfs usage" bar represents the total amount of the hdfs space that is currently being used.
-      .help-section
-        %h3.help-label Environment Status Help
-        .help-content{ :style =>  @tab != 'zookeepers' && 'display: none' }
-          .head
-            The "Environment Status" page is a zookeeper specific status page.
-          .body
-            %ol
-              %li
-                The widget at the top displays the zookeepers status.
-                %ul
-                  %li Hovering over "online(#)" and "offline(#)", only shown if there are any nodes offline or online respectively, will display a tooltip listing the respective nodes.
-                  %li A green background means that the system is healthy.
-                  %li A yellow background means that some of the zookeeper nodes are offline but it is still in quorum.
-                  %li A red background with the header "Quorom Failure" means that quorom is not being met.
-                  %li A red background with the header "Offline" means that the zookeeper instance cannot be reached or is completely offline.
-              %li The "controllers" table lists each controller with its name, blur version, and status.
-              %li The "shards" column contains a link that, when clicked, displays a popup listing all the child shards and their status.
-              %li The "clusters" table lists each shard with its name, blur version, and status. Click "view shards" for a list of the shards in that cluster and the status of each of them.
-              %li Clicking on the 'x' icon on this page will delete the node from the database, 'forget', this is only displayed if the node is no longer online.
-      .help-section
-        %h3.help-label Blur Tables Help
-        .help-content{ :style =>  @tab != 'blur_tables' && 'display: none' }
-          .head
-            The "Blur Tables" page is a list of all the Blur Tables associated with the current zookeeper. The tabs represent each cluster of shards. The tables are broken into Active, Disabled, Deleted statuses.  Each row contains information describing a Blur Table.
-          .body
-            %ol
-              %li The "Hosts/Shards" column is a link that displays a dialog with a list of all the hosts and shards for that BlurTable when clicked.
-              %li "Row Count" is the number of rows in that particular table.
-              %li "Record Count" is the number of records in that particular table.
-              %li
-                "Info" is a link that displays a list of Column families and their columns.s
-                %ul
-                  %li The location of the table in the HDFS.
-                  %li Each entry also shows the name of its analyzer.
-              %li "Queries/Minute" is a sparkline graph and an average number of queries on the corresponding table over the past 10 minutes.
-          .head
-            Depending on access, various actions will be available per status.
-          .body
-            %ul
-              %li Active tables will have the option to disable the table
-              %li Disabled tables will have the option to activate the table or delete the table.
-      .help-section
-        %h3.help-label Blur Queries Help
-        .help-content{ :style =>  @tab != 'blur_queries' && 'display: none' }
-          .head
-            The "Blur Queries" page is a list of recently executed Blur Queries.
-          .body
-            %ol
-              %li The "Auto Refresh" selector allows the user to choose how often the table information is refreshed.
-              %li The "Queries in the last" selector allows users to limit the queries by the time they were updated.
-              %li The "Quick Filter Status By" selector allows users to quickly show certain queries by their current status.
-              %li When the table is refreshed, queries are automatically added, updated, and deleted.
-              %li Each column in the table is sortable by clicking the header of each column.
-              %li The "Filter Queries" box allows users to search for specific values in the table.
-          .head
-            Underneath the filters section is the queries table.
-          .body
-            %ol
-              %li The "User Id" column shows the ID of the user that submitted that query.
-              %li
-                The "Query" column is the text of the executed query. This is only visible to users with the auditor role.
-                %ul
-                  %li Only the first 50 characters of the query text are displayed on the table. The full text can be seen by hovering your mouse over the query column.
-              %li The "Table Name" column shows the table that the query was executed against.
-              %li The "Starting Record" column shows the starting offset for the executed query.
-              %li The "Time Submitted" column shows the time that the query was submitted.
-              %li The "Status" column shows the percent of shards that have completed the query and whether or not the query is still running or was interrupted.
-              %li The "Actions/Info" column gives users the ability to cancel queries that are still in the running state (editor role only) and display details associated with the query (auditor role only).
-      .help-section
-        %h3.help-label Search Help
-        .help-content{ :style =>  @tab != 'searches' && 'display: none' }
-          .help_list#search_help
-            .head
-              Use the "Search" box to begin building a query. Use the search button to the right to submit.
-            .body
-              %ol
-                %li Basic field searches are in the format column_family.column:value
-                %li NOTE: Not all tables can be '*' queried, to learn more about the allowed tables consult your admin.
-                %li Fields can be grouped with parenthesis. Eg. (employee.name:bob employee.gender:male)
-                %li
-                  Special characters:
-                  %ul
-                    %li '+' - Indicates that the field or grouping must exist in the result set (+employee.name:bob)
-                    %li '-' - Indicates that the field or grouping can NOT exist in the result set (-employee.name:bob)
-                    %li '?' - Wildcard for a single character (employee.birthdate:197001??)
-                    %li '*' - Wildcard for 0 to many characters (employee.name:b*b)
-                    %li '~' - Fuzzy criteria to be followed by a number between 0 and 1 (employee.name:bob~0.7)
-
-          .help_list#advanced_help
-            .head
-              Use the "Advanced" menu to further modify a query.
-            .body
-              %ol
-                %li The "Column Families" selector tree allows users to limit the returned columns.
-                %li The "Search On" option allows you to search across a row or record.
-                %li The "Return" option allows you to choose whether to return the results by row or a record.
-                %li The "Start" option allows you to choose the starting element to display.
-                %li The "Fetch" option allows you to limit the amount of rows that are returned.
-                %li The "Pre-Filter" field allows you to remove records before the "join" operation.
-                %li The "Post-Filter" field allows you to filter rows out after the query.
-
-          .help_list#saved_help
-            .head
-              Use the "Saved" menu to load a previously saved query.
-            .body
-              %ol
-                %li The pencil will load the save into the form.
-                %li The red "x" will delete the saved query.
-                %li 
-                  Use the "Save Options" tab to save the current query.
-                  %ul
-                    %li The "Name" field is used to name your saved searches.
-                    %li You can update an existing saved search by using the same name in the name field and clicking update.
-      .help-section
-        %h3.help-label HDFS help
-        .help-content{ :style =>  @tab != 'hdfs' && 'display: none' }
-          .head
-            The HDFS page presents a simple file viewer of an HDFS file system.  Right clicking on the root node will expose properties about the file system as a whole.  Right clicking on any of the children nodes will allow for various editing actions (cut, paste, delete).
-      .help-section
-        %h3.help-label HDFS Metrics help
-        .help-content{ :style =>  @tab != 'hdfs_metrics' && 'display: none' }
-          .head
-            The HDFS metrics page displays a series of statistics for each of your managed hdfs instances. It allows you to track the history of a few key "metrics". The history range can be controlled by the slider / datepicker combo in the bottom right of each HDFS widget. This allows the user to change the range of the metrics window between 2 weeks ago and real time.
-      .help-section
-        %h3.help-label Admin help
-        .help-content{ :style =>  @tab != 'admin' && 'display: none' }
-          .head
-            The "Admin Page" contains a list of all the current users registered in the system. Users with the admin role may edit the roles and information for users on this page. It is only visible to users with the admin role.
-      .help-section
-        %h3.help-label Users help
-        .help-content{ :style =>  @tab != 'users' && 'display: none' }
-          .head
-            The "Column Preferences" section allows the user to choose what column families they want to display first in the results table when they execute a search on the search page.
-          .body
-            %ol
-              %li
-                "My Saved Column Families" is a list of the user's chosen preferred column families, this list is in sorted order from top to bottom.
-                %ul
-                  %li This list is sortable. To change the order of the column families, simply drag a column family to the desired spot in the list.
-                  %li To add columns to your preferred list, click on a blue column from the list on the right and it will be added to your preferred list.
-                  %li To remove a column from your preferred list,** a user can either drag the column into the trash can from their preferred list or click on the corresponding column on the right.

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/layouts/application.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/layouts/application.html.haml b/blur-admin/app/views/layouts/application.html.haml
deleted file mode 100644
index d78b0c8..0000000
--- a/blur-admin/app/views/layouts/application.html.haml
+++ /dev/null
@@ -1,84 +0,0 @@
-!!!5
-%html
-	%head
-		= csrf_meta_tag
-		:javascript
-			var CurrentZookeeper = #{session[:current_zookeeper_id] || 'null'};
-		= javascript_include_tag 'application', 'routes'
-		= yield(:javascript)
-		= stylesheet_link_tag 'application', :media => "all" 
-		- if session[:current_zookeeper_id].blank? && @zookeepers
-			:javascript
-				var Zookeeper = {};
-				Zookeeper.instances = #{@zookeepers.collect{|z| {:id=>z.id, :name=>z.name}}.to_json}
-		%title
-			= yield(:title)
-			| Blur Console
-		%link{:rel => "icon", :type => "image/png", :href => "/assets/favicon.png"}
-	%body
-		#root
-			- if @current_user
-				.navbar
-					%a.brand{:href => '/'}
-						= image_tag('blur_logo.png')
-					.navbar-inner
-						%ul.nav.pull-left
-							- controller = params[:controller]
-							- action = params[:action]
-							%li{:class => controller == 'zookeepers' && action == 'index' && 'active'}
-								= link_to 'Dashboard', root_path
-							%li{:class => controller == 'zookeepers' && action == 'show' && 'active'}
-								= link_to 'Environment Status', stateful_nav_url('environment'), :id => 'env_link'
-							%li{:class => controller == 'blur_tables' && 'active'}
-								= link_to 'Blur Tables', stateful_nav_url('blur_table'), :id => 'tables_link', 'data-url-extension' => '/blur_tables'
-							%li{:class => controller == 'blur_queries' && 'active'}
-								= link_to 'Blur Queries', stateful_nav_url('blur_query'), :id => 'queries_link', 'data-url-extension' => '/blur_queries'
-							- if can? :show, :searches
-								%li{:class => controller == 'searches' && 'active'}
-									= link_to 'Search', stateful_nav_url('search'), :id => 'search_link', 'data-url-extension' => '/searches'
-							%li.dropdown{:class => (controller == 'hdfs' || controller == 'hdfs_metrics') && 'active'}
-								%a.dropdown-toggle{:href=>'#', :data=>{:toggle=>'dropdown'}}
-									HDFS
-									%b.caret
-								%ul.dropdown-menu
-									%li{:class => controller == 'hdfs' && 'active'}
-										= link_to 'HDFS File Browser', hdfs_index_path
-									%li{:class => controller == 'hdfs_metrics' && 'active'}
-										= link_to 'HDFS Metrics', hdfs_metrics_path
-							- if can? :index, :audits
-								%li{:class => controller == 'audits' && action == 'index' && 'active'}
-									= link_to 'Audits', audits_path
-							- if can? :index, :users
-								%li{:class => controller == 'users' && action == 'index' && 'active'}
-									= link_to 'Admin', users_path
-							
-						%ul.nav.pull-right
-							- if @zookeepers && @zookeepers.length > 1
-								%li
-									#zookeeper_select
-										-blank = @current_zookeeper.nil? && session[:current_zookeeper_id].nil?
-										= select('zookeeper', 'id', @zookeepers.collect{|zk| [zk.name, zk.id]}, {:id => 'zookeeper_id', :include_blank => blank, :selected => session[:current_zookeeper_id]})
-								%li.divider-vertical
-							%li{:class => controller == 'users' && action == 'show' && 'active'}
-								= link_to "Account", @current_user
-							- if session[:proof].blank?
-								%li= link_to "Log Out", logout_path
-			#bd.container-fluid
-				= yield
-
-	- if flash
-		#flash
-			- flash.each do |type, message|
-				-if type == :notice
-					.alert.alert-success{:class=>type}= message
-				-elsif type == :error
-					.alert.alert-error{:class=>type}= message
-				-else
-					.alert.alert-info{:class=>type}= message
-	#ft
-		#company-info
-			%p
-				- if !@current_user.nil?
-					%a#page-help{:href => ''} Help
-				| Version 1.4.2
-#help-menu{:style => 'display: none', "data-controller" => params[:controller], "data-action" => params[:action]}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/searches/_saved.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/searches/_saved.html.haml b/blur-admin/app/views/searches/_saved.html.haml
deleted file mode 100644
index f54e730..0000000
--- a/blur-admin/app/views/searches/_saved.html.haml
+++ /dev/null
@@ -1,15 +0,0 @@
-#searches.partial-section
-	-if @searches.length != 0
-		-@searches.each do |search|
-			.search_element{:id => search.id}
-				.search-name{:title => search.name}
-					=search.name
-				.search-buttons
-					%a.btn#edit_icon{ :title => "Edit Query" }
-						%i.icon-pencil
-					%a.btn#delete_icon{ :title => "Delete Query" }
-						%i.icon-remove
-				.clearfix
-
-	-else
-		%div You do not have any saved searches.

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/searches/create.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/searches/create.html.haml b/blur-admin/app/views/searches/create.html.haml
deleted file mode 100644
index 52b5ae8..0000000
--- a/blur-admin/app/views/searches/create.html.haml
+++ /dev/null
@@ -1,39 +0,0 @@
-- if @results and not @results.empty?
-  #results_info
-    = "#{@result_count} results found"
-  #results_section
-    %table#result_table.result_table
-      %thead
-        %tr.familysets
-          %th.rowId
-          - @schema.each do |familyName,family|
-            %th{:colspan => family['columns'].count, :children => family['columns'].count, :class => "family_-sep-_#{family['name']}", :id => family['name'] }= family['name']
-        %tr.columnsets
-          %th.rowId rowId
-          - @schema.each do |familyName,family|
-            - family['columns'].each do |column|
-              %th{:class => "column_-sep-_#{family['name']}_-sep-_#{column['name']} family_-sep-_#{family['name']}"}
-                = column['name'].gsub(/([A-Z])/, '&shy;\1').html_safe
-
-      %tbody
-        -current_row_id = ""
-        - @results.each do |result|
-          - max_record_count = result[:max_record_count]
-          - max_record_count.times do |i|
-            %tr.table-bordered{:class => (current_row_id != result[:id]) ? "first" : ""}
-
-              - @schema.each_with_index do |(familyName,column_family), j|
-                - if i == 0 and j == 0
-                  %td{:rowspan => max_record_count, :class => "first", :title => "rowId"}= result[:id]
-                  -current_row_id = result[:id]
-                - record = result[column_family['name']][i] if result[column_family['name']]
-
-                - if record # then insert the record
-                  - column_family['columns'].each do |column|
-                    %td{:class => "#{((j % 2) == 1 ? 'even' : 'odd' )} column_-sep-_#{column_family['name']}_-sep-_#{column['name']} family_-sep-_#{column_family['name']}",
-                        :title => column['name']}
-                      = record[column['name']]
-
-                - else # fill in the remaining space with a big cell
-                  %td{:class => "#{((j % 2) == 1 ? 'even' : 'odd' )} family_-sep-_#{column_family['name']} family_-sep-_#{column_family['name']}_-sep-_empty",
-                      :colspan => column_family['columns'].length}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/searches/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/searches/index.html.haml b/blur-admin/app/views/searches/index.html.haml
deleted file mode 100644
index 493cd33..0000000
--- a/blur-admin/app/views/searches/index.html.haml
+++ /dev/null
@@ -1,111 +0,0 @@
--content_for :title, 'Search'
--content_for :javascript do
-  =javascript_include_tag 'search'
-
-%script
-  var searchValidator = {table: "#{@search_filter.value}", query: /:\*$|^\*$/};
-
-#search_page_wrapper
-  #filter_section
-    = form_tag zookeeper_searches_path, :method => 'post', :id=>'search_form', :remote => true do
-      #filters_wrap
-        #standard
-          .search_field
-            = search_field_tag :query_string, params[:query_string], :placeholder => "Enter a Query String", :value => @query
-          = submit_tag "Search", :id => "search_submit", :class => "btn btn-primary"
-          %img.hidden{:id => "loading-spinner",
-              :src => image_path("loader.gif"),
-              :alt => "Loading..."}
-        #blur-table
-          = select_tag :blur_table, grouped_options_for_select(@filter_table_collection, @blur_table ? @blur_table.id : nil)
-        #advanced
-          .header
-            Advanced
-            %img{:class => "arrow_down arrow",
-                :src => image_path("arrow_down.png"),
-                :alt => "Expand For More Options"}
-            %img{:class => "arrow_up arrow",
-                :src => image_path("arrow_up.png"),
-                :alt => "Expand For More Options"}
-          .body.tab
-            .filter.section
-              .filtered-title Column Families
-              #filter_columns
-                .column_family_filter{:name=>"column_data[]"}
-            .section
-              %table
-                %tr.filter
-                  #radio_headers
-                    %td Search On:
-                %tr
-                  %td
-                    #radio_buttons
-                      %table
-                        %tr
-                          %td Row 
-                          %td 
-                            %input#search_row{:class => :radioButton, :name => :search, :type => :radio, :value => '0', :checked => 'checked'}
-                        %tr
-                          %td Record
-                          %td
-                            %input#search_record{:class => :radioButton, :name => :search, :type => :radio, :value => '1'}   
-                %tr.filter
-                  #radio_headers  
-                    %td Return:
-                %tr
-                  %td
-                    #radio_buttons
-                      %table
-                        %tr
-                          %td Row 
-                          %td 
-                            %input#return_row{:class => :radioButton, :name => :return, :type => :radio, :value => '0', :checked => 'checked'}
-                        %tr
-                          %td Record
-                          %td
-                            %input#return_record{:class => :radioButton, :name => :return, :type => :radio, :value => '1', :disabled => true}                     
-                %tr.filter
-                  %th Start:
-                  %td
-                    = number_field_tag :offset, 0, :min => 0
-                %tr.filter
-                  %td Fetch:
-                  %td 
-                    = number_field_tag :result_count, 10, :min => 0
-                %tr
-                  %td Pre-filter String
-                %tr
-                  %td{:colspan => 2}
-                    %input#pre_filter{:class => :filter_text, :type => :text, :value => '', :name => :pre_filter} 
-                %tr
-                  %td Post-filter String
-                %tr
-                  %td{:colspan => 2}
-                    %input#post_filter{:class => :filter_text, :type => :text, :value => '', :name => :post_filter}                                        
-        #saved
-          .header
-            Saved
-            %img{:class => "arrow_down arrow",
-                :src => image_path("arrow_down.png"),
-                :alt => "Expand For More Options"}
-            %img{:class => "arrow_up arrow",
-                :src => image_path("arrow_up.png"),
-                :alt => "Expand For More Options"}
-          .body.tab
-            .saved.section
-              .saved-title
-                Saved Searches
-              = render "saved", :searches => @searches, :blur_table => @blur_table
-            .save_actions.section
-              .saved-title.saved-input
-                Save Current Search
-              .filter#save_name_wrap
-                #save_label= label_tag :save_name, 'Name:'
-                = text_field_tag 'save_name'
-              .filter#buttons
-                %button.btn.primary{:name => "save", :type => "button", :id => 'save_button'}
-                  Save New
-                %button.btn{:name => "update", :type => "button", :id => 'update_button'}
-                  Update
-  #results_wrapper.hidden
-    #results_container
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/shared/_icons.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/shared/_icons.html.haml b/blur-admin/app/views/shared/_icons.html.haml
deleted file mode 100644
index c2142b6..0000000
--- a/blur-admin/app/views/shared/_icons.html.haml
+++ /dev/null
@@ -1,2 +0,0 @@
-%i.icon-chevron-up
-%i.icon-chevron-down
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/user_sessions/_form.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/user_sessions/_form.html.haml b/blur-admin/app/views/user_sessions/_form.html.haml
deleted file mode 100644
index d36528f..0000000
--- a/blur-admin/app/views/user_sessions/_form.html.haml
+++ /dev/null
@@ -1,13 +0,0 @@
-= twitter_bootstrap_form_for user_session, :html => {:class => 'well'} do |f|
-  -if user_session.errors.any?
-    #error_explanation
-      %ul
-        - user_session.errors.full_messages.each do |msg|
-          %li= msg
-  %p
-    = f.text_field :username, false, :placeholder => "Username"
-  %p
-    = f.password_field :password, false, :placeholder => "Password"
-  %p
-    = f.submit 'Log In', :class => "btn btn-primary"
-    = link_to 'Register', new_user_path

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/user_sessions/new.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/user_sessions/new.html.haml b/blur-admin/app/views/user_sessions/new.html.haml
deleted file mode 100644
index b00a403..0000000
--- a/blur-admin/app/views/user_sessions/new.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-- content_for :title, 'Log In'
-#login_wrapper
-	= link_to image_tag('blur_logo.png'), root_path
-	= render 'form', :user_session => @user_session
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/users/_form.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/users/_form.html.haml b/blur-admin/app/views/users/_form.html.haml
deleted file mode 100644
index b2cd362..0000000
--- a/blur-admin/app/views/users/_form.html.haml
+++ /dev/null
@@ -1,34 +0,0 @@
-= twitter_bootstrap_form_for user do |f|
-	-if user.errors.any?
-		#error_explanation
-			%h4= "#{pluralize(user.errors.count, 'error')} prohibited new user from being saved"
-			%ul
-				- user.errors.full_messages.each do |msg|
-					%li= msg
-	%label= "Account Information"
-	- fields = {:username					=> :text_field,
-			:name											=> :text_field,
-			:email										=> :email_field,
-			:password									=> :password_field,
-			:password_confirmation 		=> :password_field}
-	- fields.each_pair do |field_name, field_type|
-		- if (!user.new_record? and can? :update, user, field_name)	or ( user.new_record? and can? :create, user, field_name)
-			= f.send field_type, field_name, false, :placeholder => field_name.to_s.humanize
-		- elsif user[field_name]
-			%strong= "#{field_name}: "
-			= user[field_name]
-	- if (current_user && current_user.is?(:admin))
-		= f.toggles 'Roles' do
-			- User::ROLES.each do |role|
-				%li
-					- if role == "admin" && current_user == user
-						= check_box_tag "user[roles][]", role, user.is?(role), :id => 'user_role_' + role, :style => 'display:none'
-					- else
-						= check_box_tag "user[roles][]", role, user.is?(role), :id => 'user_role_' + role
-					%span
-						= role.to_s.humanize
-	- if current_user
-		= f.submit 'Save', :class => 'btn btn-primary'
-	- else
-		= f.submit 'Register', :class => 'btn btn-primary'
-	= link_to 'Cancel', cancel_path, :class => 'btn'

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/users/edit.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/users/edit.html.haml b/blur-admin/app/views/users/edit.html.haml
deleted file mode 100644
index b238170..0000000
--- a/blur-admin/app/views/users/edit.html.haml
+++ /dev/null
@@ -1,5 +0,0 @@
-- content_for :title, 'Edit User'
-
-#edit_user_wrapper
-  %h2 Edit User
-  = render 'form', :user => @user, :cancel_path => users_path

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/users/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/users/index.html.haml b/blur-admin/app/views/users/index.html.haml
deleted file mode 100644
index 302f466..0000000
--- a/blur-admin/app/views/users/index.html.haml
+++ /dev/null
@@ -1,33 +0,0 @@
-- content_for :title, 'Users'
-- content_for :javascript do
-	=javascript_include_tag 'admin'
-
-#admin_wrapper
-	%h2 Users
-	#users_table_wrapper
-		%table.table.table-bordered.table-striped{:id => 'users_table'}
-			%tr
-				%th Username
-				%th Name
-				%th Email
-				%th Roles
-				%th Actions
-			- for user in @users
-				%tr
-					%td= user.username
-					%td= user.name
-					%td= user.email
-					%td= user.roles.to_a.join ', '
-					%td
-						=link_to raw('<i class="icon-pencil"></i> Edit'), edit_user_path(user), :class => 'btn'
-						- if current_user != user
-							= link_to raw('<i class="icon-trash icon-white"></i> Delete'), user, :confirm => 'Are you sure?', :method => :delete, :class => 'btn btn-danger'
-	%p= link_to raw('<i class="icon-user"></i> New User'), new_user_path, :class => 'btn'
-
-	%h2.filter-header Star Query Table Filter
-	%p.clarification (Whitelist Regex for allowing '*' queries)
-	= form_tag("/admin_settings/#{@search_filter.id}.html", :method => "put", :remote => true, :class => 'table-filter') do
-		= hidden_field_tag(:setting, 'regex_filter')
-		.control-group
-			= text_field_tag(:value, @search_filter.value)
-			= submit_tag("Save", :class => 'btn')

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/users/new.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/users/new.html.haml b/blur-admin/app/views/users/new.html.haml
deleted file mode 100644
index 7e8fdf8..0000000
--- a/blur-admin/app/views/users/new.html.haml
+++ /dev/null
@@ -1,12 +0,0 @@
-- content_for :title, 'New User'
-
-- if current_user
-	#new_user_wrapper
-		%h2 New User
-		= render 'form', :user => @user, :cancel_path => users_path
-- else
-	#login_wrapper
-		= link_to image_tag('blur_logo.png'), root_path
-		#new_user_wrapper.well
-			%h2 Register
-			= render 'form', :user => @user, :cancel_path => login_path

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/users/show.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/users/show.html.haml b/blur-admin/app/views/users/show.html.haml
deleted file mode 100644
index b738c15..0000000
--- a/blur-admin/app/views/users/show.html.haml
+++ /dev/null
@@ -1,78 +0,0 @@
-- content_for :title, 'User'
-- content_for :javascript do
-  =javascript_include_tag 'users'
-
-#show_user_wrapper{'data-user-id' => @user.id}
-  .info-contain.row
-    - if can? :update, @column_preference
-      - col_prefs = @column_preference.value || []
-      #pref-col-info.span5
-        #pref-row.row
-          #pref-title.hidden-spinner
-            %img{:class => "loading-spinner",
-              :src => image_path("loader.gif"),
-              :alt => "Loading..."}
-            %h3 Search Result Column Preferences
-          #pref-bin.span3
-
-            #pref-col
-              .section-label{:id => @user.id} My Saved Column Families
-              %ul#my-cols.sort
-                -if col_prefs.size() == 0
-                  #no-saved None Currently Saved
-                -else
-                  #no-saved{:style => "display:none;"} None Currently Saved
-                  -col_prefs.each do |pref|
-                    .sel-fam{:id => "value_#{pref}"}
-                      =pref
-            #pref-trash
-              %ul#actual-trash.sort
-                #trash Drag a column here to remove it from your preferences
-            #pref-key
-              %h4 Search Prefence Key:
-              Saved Column:
-              #orange_color
-              %br
-              Unsaved Column:
-              #blue_color
-          #opt-col.span2
-            .section-label All Column Families
-            -@choices.each do |option|
-              -if col_prefs.include? option
-                .my-select.fam{:id => "value_#{option}"}
-                  =option
-              -elsif !option.blank?
-                .fam{:id => "value_#{option}"}
-                  =option
-    #zookeeper-pref.span6
-      %h3 Zookeeper Preferences
-      - options = ["Default", "Choose Zookeeper", " Use Last Zookeeper"]
-      %select#zookeeper_pref
-        - options.each_with_index do |option, index|
-          %option{ :value => index, :selected => (:selected if @zookeeper_preference.name == index.to_s) }
-            = option
-      =select_tag :zookeeper_num,  options_from_collection_for_select(@zookeepers, "id", "name", @zookeeper_preference.value)
-      %p
-        This preference will only be used when the current user does not have a zookeeper in the current session.
-      %p
-      =submit_tag "Save", :confirm => "Are you sure?", :id => "zookeeper_submit", :class => "btn btn-primary"
-
-    #user-info.span4
-      %p
-        %strong Username:
-        = @user.username
-      %p
-        %strong Name:
-        = @user.name
-      %p
-        %strong Email:
-        = @user.email
-      %p
-        %strong Roles:
-        = @user.roles.to_a.join ', '
-      %p
-        - if can? :edit, @user
-          = link_to "Edit", edit_user_path(@user)
-        - if can? :index, :users
-          |
-          = link_to "View All Users", users_path

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/zookeepers/_hdfs_stat.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/zookeepers/_hdfs_stat.html.haml b/blur-admin/app/views/zookeepers/_hdfs_stat.html.haml
deleted file mode 100644
index 5e1fd43..0000000
--- a/blur-admin/app/views/zookeepers/_hdfs_stat.html.haml
+++ /dev/null
@@ -1,41 +0,0 @@
-.hdfs_info
-  %table.hdfs_table{:id => "#{hdfs.id}"}
-    %thead
-      %tr
-        %th.hdfs-title{ :colspan => 2}
-          .hdfs-name
-            = hdfs.name + " - "
-            %span.hdfs-host
-              =hdfs.host
-
-    %tbody
-      %tr
-        %th Blocks
-        %th Nodes
-      %tr
-        %td.center
-          .blocks-corr.label.status.center
-            %span.number 0
-            Corrupt Blocks
-        %td.center
-          .progress.progress-up-down
-            .bar.up.nodes-live{:style=>'width:100%'}
-              %span.number 0
-              Online/Offline
-            .down.nodes-dead
-              %span.number
-      %tr
-        %td.center
-          .blocks-miss.label.status.center
-            %span.number 0
-            Missing Blocks
-        %td.center &nbsp;
-      %tr
-        %td.center
-          .nodes-under.label.status.center
-            %span.number 0
-            Under Replicated Blocks
-        %td.center &nbsp;
-      %tr
-        %td{ :colspan => 2 }
-          .warning

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/views/zookeepers/_zookeeper.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/zookeepers/_zookeeper.html.haml b/blur-admin/app/views/zookeepers/_zookeeper.html.haml
deleted file mode 100644
index 19747a7..0000000
--- a/blur-admin/app/views/zookeepers/_zookeeper.html.haml
+++ /dev/null
@@ -1,48 +0,0 @@
-.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/b5b86c7e/blur-admin/app/views/zookeepers/index.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/zookeepers/index.html.haml b/blur-admin/app/views/zookeepers/index.html.haml
deleted file mode 100644
index 5292f4b..0000000
--- a/blur-admin/app/views/zookeepers/index.html.haml
+++ /dev/null
@@ -1,15 +0,0 @@
-- 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/b5b86c7e/blur-admin/app/views/zookeepers/show.html.haml
----------------------------------------------------------------------
diff --git a/blur-admin/app/views/zookeepers/show.html.haml b/blur-admin/app/views/zookeepers/show.html.haml
deleted file mode 100644
index 929ac23..0000000
--- a/blur-admin/app/views/zookeepers/show.html.haml
+++ /dev/null
@@ -1,33 +0,0 @@
-- 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/b5b86c7e/blur-admin/config.ru
----------------------------------------------------------------------
diff --git a/blur-admin/config.ru b/blur-admin/config.ru
deleted file mode 100644
index f9b1711..0000000
--- a/blur-admin/config.ru
+++ /dev/null
@@ -1,4 +0,0 @@
-# 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/b5b86c7e/blur-admin/config/application.rb
----------------------------------------------------------------------
diff --git a/blur-admin/config/application.rb b/blur-admin/config/application.rb
deleted file mode 100644
index 9fbe6b4..0000000
--- a/blur-admin/config/application.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-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/b5b86c7e/blur-admin/config/boot.rb
----------------------------------------------------------------------
diff --git a/blur-admin/config/boot.rb b/blur-admin/config/boot.rb
deleted file mode 100644
index 4489e58..0000000
--- a/blur-admin/config/boot.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-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/b5b86c7e/blur-admin/config/compass.rb
----------------------------------------------------------------------
diff --git a/blur-admin/config/compass.rb b/blur-admin/config/compass.rb
deleted file mode 100644
index b10b5c2..0000000
--- a/blur-admin/config/compass.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-# 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/b5b86c7e/blur-admin/config/database.yml
----------------------------------------------------------------------
diff --git a/blur-admin/config/database.yml b/blur-admin/config/database.yml
deleted file mode 100644
index ef9471a..0000000
--- a/blur-admin/config/database.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-<% if ENV['BAMBOO'] == 'true' %>
-
-development:
-  adapter: mysql2
-  encoding: utf8
-  database: blurtools_development
-  host: nic-mysqldev01
-  pool: 5
-  username: blurtools_bamboo
-  password: blurtools_bamboo
-
-test:
-  adapter: mysql2
-  encoding: utf8
-  database: blurtools_test
-  host: nic-mysqldev01
-  pool: 5
-  username: blurtools_bamboo
-  password: blurtools_bamboo
-
-<% else %>
-
-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: 
-<% end %>


Mime
View raw message