<commit_before>scm Cookbook
============
Installs and configures cloudera manager server and agent daemons

Requirements
------------
This cookbook depends on these external cookbooks

* apt
* yum

Attributes
----------
* `scm[:version]` - Cloudera manager version to install

Usage
-----


License and Authors
-------------------
Authors: [Ashrith](<EMAIL>)

Copyright: 2013, Cloudwick

Licensed 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.<commit_msg>Updates readme with usage instructions<commit_after>scm Cookbook
============
Installs and configures cloudera manager server and agent daemons

Requirements
------------
This cookbook depends on these external cookbooks

* apt
* yum

Install the dependencies:

```
knife cookbook site install apt
knife cookbook site install yum
```

Attributes
----------
* `scm[:version]` - Cloudera manager version to install
* `scm[:reposerver]` - root path from where to install cm packages from
* `scm[:server_port]` - port on which cmserver should listen on
* `scm[:java_home]` - java path to use

Usage
-----
Load the roles of cloduera manager and cloudera agent from the file using:

```
knife role from file roles/cmserver.rb
knife role from file roles/cmsagent.rb
```

Initialize `cmserver` on cmserver.cw.com:

```
knife node run_list add cmserver.cw.com 'role[cmserver]'
knife ssh 'name:cmserver.cw.com' 'sudo chef-client'
```

Initialize `cmagent` on cmagent1.cw.com and cmagent2.cw.com:

```
knife bootstrap cmagent1.cw.com -x ubuntu -i ~/.ssh/id_rsa --sudo -r 'role[cmagent]'
knife bootstrap cmagent2.cw.com -x ubuntu -i ~/.ssh/id_rsa --sudo -r 'role[cmagent]'
```

License and Authors
-------------------
Authors: [Ashrith](<EMAIL>)

Copyright: 2013, Cloudwick

Licensed 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.
{'fraction_non_alphanumeric': 0.11961722488038277, 'fraction_numerical': 0.00736105999263894, 'mean_word_length': 3.9328493647912888, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1322709', 'n_tokens_mistral': 806, 'n_tokens_neox': 762, 'n_words': 333}