Skip to content

Commit

Permalink
Setting default charset for all hops tables to latin1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Dowling committed Apr 9, 2015
1 parent 6328d70 commit cabeaf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
node.normal[:hadoop][:version] = "2.4.0"

include_attribute "kagent"
include_attribute "hadoop"
include_attribute "ndb"

node.normal[:hadoop][:version] = "2.4.0"

default[:hops][:download_url] = "#{node[:download_url]}/hops-#{node[:hadoop][:version]}.tgz"
default[:hops][:hadoop_src_url] = "#{node[:download_url]}/hadoop-#{node[:hadoop][:version]}-src.tar.gz"

Expand Down
6 changes: 3 additions & 3 deletions templates/default/hops.sql.erb
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ CREATE TABLE `yarn_rmnode` (
`nodemanager_version` VARCHAR(45) NULL,
`uci_id` INT NULL,
PRIMARY KEY (`rmnodeid`))
ENGINE = ndbcluster
ENGINE = ndbcluster DEFAULT CHARSET=latin1$$
PACK_KEYS = DEFAULT PARTITION BY KEY(rmnodeid)$$


Expand Down Expand Up @@ -812,7 +812,7 @@ CREATE TABLE `yarn_nextheartbeat` (
REFERENCES `yarn_rmnode` (`rmnodeid`)
ON DELETE CASCADE
ON UPDATE NO ACTION)
ENGINE = ndbcluster$$
ENGINE = ndbcluster DEFAULT CHARSET=latin1$$

delimiter $$

Expand All @@ -823,4 +823,4 @@ CREATE TABLE `yarn_pendingevents` (
`status` TINYINT NULL,
`last_hb` INT NULL,
PRIMARY KEY (`id`, `rmnodeid`))
ENGINE = ndbcluster$$
ENGINE = ndbcluster DEFAULT CHARSET=latin1$$

0 comments on commit cabeaf8

Please sign in to comment.